package
Version:
v0.0.0-...-dae2b91
Opens a new window with list of versions in this module.
Published: Sep 23, 2023
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
GoSafe runs the given fn using another goroutine, recovers if fn panics.
func Recover(cleanups ...func())
Recover is used with defer to do cleanup on panics.
Use it like:
defer Recover(func() {})
RunSafe runs the given fn, recovers if fn panics.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.