Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoSafe ¶
func GoSafe(fn func())
GoSafe runs the given fn using another goroutine, recovers if fn panics.
func GoSafeWithContext ¶
GoSafeWithContext ...
func GoWithContext ¶
GoWithContext runs the given fn using another goroutine with context, recovers if fn panics.
func Recover ¶
Recover is used with defer to do cleanup on panics. Use it like: defer Recover(func() {})
func RecoverNotContext ¶
func RecoverNotContext()
RecoverNotContext is used with defer to do cleanup on panics. Use it like: defer Recover(func() {})
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.