isclosed

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(ctx context.Context, done ...<-chan struct{}) <-chan struct{}

All returns a channel that is closed either when each of the channels is read from or the passed context is canceled. All is useful for implementing graceful shutdown of a number of Sends or other running goroutines that indicate their state via a returned read only channel. The graceful shutdown can be circumvented via the context passed to All to ensure shutdowns will not deadlock.

Types

This section is empty.

Jump to

Keyboard shortcuts

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