event

package
v0.1.102 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

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

Event ...

func (*Event) C

func (me *Event) C() <-chan struct{}

C Returns a chan that is closed when the event is true.

func (*Event) Clear

func (me *Event) Clear()

Clear ... TODO: Merge into Set.

func (*Event) IsSet

func (me *Event) IsSet() bool

IsSet ... TODO: Change to Get.

func (*Event) LockedChan

func (me *Event) LockedChan(lock sync.Locker) <-chan struct{}

LockedChan ...

func (*Event) Set

func (me *Event) Set() (first bool)

Set the event to true/on.

func (*Event) SetBool

func (me *Event) SetBool(b bool)

SetBool ... TODO: Merge into Set.

func (*Event) Wait

func (me *Event) Wait()

Wait ...

Jump to

Keyboard shortcuts

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