async

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: MPL-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, wg *sync.WaitGroup, f Runner)

Run runs the provided function in a goroutine, and call wg.Done() when it returns. Stopping the async function is meant to be handled by the provided context.

Types

type Runner

type Runner func(ctx context.Context)

Runner is fonction callable by async.Run()

Jump to

Keyboard shortcuts

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