gate

package
v0.0.0-...-e8da0a6 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoReset

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

func NewAutoReset

func NewAutoReset(set bool) *AutoReset

func (*AutoReset) Set

func (gate *AutoReset) Set()

func (*AutoReset) Wait

func (gate *AutoReset) Wait() <-chan Empty

type Empty

type Empty struct{}

type ManualReset

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

func NewManualReset

func NewManualReset(set bool) *ManualReset

NewManualReset

set: init status

func (*ManualReset) Reset

func (signal *ManualReset) Reset()

func (*ManualReset) Set

func (gate *ManualReset) Set()

func (*ManualReset) Wait

func (signal *ManualReset) Wait() <-chan Empty

type SafeChannel

type SafeChannel struct {
	C chan Empty
	// contains filtered or unexported fields
}

func NewSafeChannel

func NewSafeChannel() *SafeChannel

func (*SafeChannel) IsClosed

func (channel *SafeChannel) IsClosed() bool

func (*SafeChannel) SafeClose

func (channel *SafeChannel) SafeClose()

func (*SafeChannel) Set

func (channel *SafeChannel) Set() bool

type Waiter

type Waiter interface {
	Wait() <-chan struct{}
}

Jump to

Keyboard shortcuts

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