trigger

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trigger

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

Trigger is a synchronization utility used to wait (in a select statement) until someone triggers it.

func (*Trigger) Done

func (t *Trigger) Done() <-chan struct{}

Done returns the channel to use in a select case. This channel is closed when someone calls Trigger.

func (*Trigger) Trigger

func (t *Trigger) Trigger()

Trigger closes any Done channel.

Jump to

Keyboard shortcuts

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