Documentation ¶
Overview ¶
Safe way to execute `go routine` without crashing the parent process while having a `panic`.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureException ¶ added in v2.0.3
func Execute ¶
func Execute(fn func(), poolName ...string)
Execute provides a safe way to execute a function asynchronously without any context, recovering if they panic and provides all error stack aiming to facilitate fail causes discovery.
func ExecuteWithContext ¶
ExecuteWithContext provides a safe way to execute a function asynchronously with a context, recovering if they panic and provides all error stack aiming to facilitate fail causes discovery.
func ExecuteWithTimeout ¶ added in v2.0.3
Types ¶
type TimeoutTask ¶ added in v2.0.3
Click to show internal directories.
Click to hide internal directories.