Documentation ¶
Overview ¶
Package safe provides tools for safe programs
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRecover = func(err interface{}) { log.Printf("Error in goroutine: %s\nStack: %s\n", err, debug.Stack()) }
Functions ¶
func GoWithRecover ¶
func GoWithRecover(goroutine func(), customRecover func(err interface{}))
GoWithRecover starts a recoverable goroutine using given customRecover() function
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.