waitstate

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorClosed = errors.New("WaitState is closed")

Functions

This section is empty.

Types

type WaitState

type WaitState struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*WaitState) Close

func (w *WaitState) Close()

func (*WaitState) Get

func (w *WaitState) Get(ctx context.Context, checkFunc func(updateCount uint64, value interface{}) bool) (uint64, interface{}, error)

func (*WaitState) GetNewer

func (w *WaitState) GetNewer(ctx context.Context, lastCount uint64) (uint64, interface{}, error)

func (*WaitState) Set

func (w *WaitState) Set(new interface{})

Jump to

Keyboard shortcuts

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