sigchannel

package
v0.0.0-...-80d5b31 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllClosed

func AllClosed(channels []<-chan struct{}) bool

AllClosed tests whether all signalling channels have been closed. Note: Must only be used on broadcast signalling channels, i.e. channels that only ever get closed, not sent any values.

func And

func And(channels []<-chan struct{}) <-chan struct{}

And returns a signalling channel that will be closed when all operand signalling channels have been closed. Note: As both And() and close() are async, it is possible and normal for And() to return 'false' immediately after close() has been called on its operands. Therefore, always use as blocking or in a for-select-loop.

func IsClosed

func IsClosed(channel <-chan struct{}) bool

IsClosed tests whether a signalling channel has been closed. Note: Must only be used on broadcast signalling channels, i.e. channels that only ever get closed, not sent any values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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