watchers

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAlreadyClosed = errors.New("watchers: already closed")
View Source
var ErrCancellationRequested = errors.New("watchers: cancellation requested")
View Source
var ErrMaxWaitessLimitExceeded = errors.New("watchers: max waiting limit exceeded")

Functions

This section is empty.

Types

type WatchersHub added in v1.0.0

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

func New

func New(doneUpto uint64, maxWaiting int) *WatchersHub

func (*WatchersHub) Close added in v1.0.0

func (w *WatchersHub) Close() error

func (*WatchersHub) DoneUpto added in v1.0.0

func (w *WatchersHub) DoneUpto(t uint64) error

func (*WatchersHub) Status added in v1.0.0

func (w *WatchersHub) Status() (doneUpto uint64, waiting int, err error)

func (*WatchersHub) WaitFor added in v1.0.0

func (w *WatchersHub) WaitFor(t uint64, cancellation <-chan struct{}) error

Jump to

Keyboard shortcuts

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