async

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 9 Imported by: 0

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

func ExecuteWithContext(fn Task, c echo.Context, poolName ...string)

`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

type Task

type Task func(c echo.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL