channels

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

Queue provides a factory to queue channels sequentially and pop / signal them one at a time in a daisy chain.

func (*Queue) Any

func (q *Queue) Any() (any bool)

Any will return true if there are any current channels waiting.

func (*Queue) Signal

func (q *Queue) Signal(x interface{})

Signal will only signal the first item in the queue.

func (*Queue) Wait

func (q *Queue) Wait(x interface{}) (c chan interface{}, any bool)

Wait will return a channel for your function to wait on.

Jump to

Keyboard shortcuts

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