tasks

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	HandleCrit func(err error)
	// contains filtered or unexported fields
}

Group is a tasks group, which can at any point be awaited to complete. Tasks in the group are run in separate go routines. If a task panics, the panic is recovered with HandleCrit.

func (*Group) Go

func (t *Group) Go(fn func() error)

func (*Group) Wait

func (t *Group) Wait() error

Jump to

Keyboard shortcuts

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