Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoSafely ¶
func GoSafely(wg *sync.WaitGroup, ignoreRecover bool, handler func(), catchFunc func(r interface{}))
GoSafely wraps a `go func()` with recover()
func GoUnterminated ¶
GoUnterminated is used for which goroutine wanna long live as its process. @period: sleep time duration after panic to defeat @handle panic so frequently. if it is not positive,
the @handle will be invoked asap after panic.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.