concurrent

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errors

func Errors(ctx context.Context) (errs chan error, fail func(error))

Errors returns an error channel and a function to push an error into the channel.

func Failer added in v0.1.2

func Failer(ctx context.Context, errs chan<- error) func(error)

Failer is a function that returns a function to push an error into a channel. It takes a context and an error channel as arguments, and ensures that the error is pushed into the channel only if the context has not been cancelled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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