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{}), w io.Writer)
GoSafely WaitGroup wraps a `go func()` with recover()
func GoUnterminated ¶
func GoUnterminated(handle func(), wg *sync.WaitGroup, ignoreRecover bool, period time.Duration, w io.Writer)
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.