Documentation
¶
Overview ¶
Package stack provides a very small and clean API for using the built-in panic and recover functions to abort and resume execution of a goroutine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Resume ¶
func Resume(fn func(error))
Resume will try to recover an earlier call to Abort and call fn if an error has been recovered. It will not recover direct calls to the built-in panic function.
Note: If the built-in panic function has been called with nil, a call to Resume will discard that panic and continue execution.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.