syncx

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCyclicBarrierBroken = errors.New("broken barrier")

Functions

This section is empty.

Types

type CyclicBarrier

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

func NewCyclicBarrier

func NewCyclicBarrier(n int, onAllArrived func() error) *CyclicBarrier

func (*CyclicBarrier) Await

func (b *CyclicBarrier) Await(ctx context.Context) error

func (*CyclicBarrier) IsBroken

func (b *CyclicBarrier) IsBroken() bool

func (*CyclicBarrier) NumWaiting

func (b *CyclicBarrier) NumWaiting() int

func (*CyclicBarrier) Reset

func (b *CyclicBarrier) Reset()

type OnceIf

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

func (*OnceIf) Do

func (o *OnceIf) Do(f func() error) error

func (*OnceIf) Done

func (o *OnceIf) Done() bool

Jump to

Keyboard shortcuts

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