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 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 ¶ added in v1.1.20
`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.
Types ¶
Click to show internal directories.
Click to hide internal directories.