Help us shape the future of Go! Take the 2026 Go Developer Survey

gate

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT 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