taskgroup

package
v0.0.0-...-189a019 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(ctx context.Context, tasks ...Task) error

Do runs all tasks, and returns when 1) all tasks have completed without errors 2) the context has been canceled (returns werrors.ErrCancelled), 3) as soon as one of the tasks has returned a non-nil error

Types

type Task

type Task func() error

Task describes some work to be done

Jump to

Keyboard shortcuts

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