trigger

package
v0.0.0-...-67c0019 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 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 interface {
	Kick(id string) chan struct{}
	Triggered() <-chan struct{}
	Ready(id string)
}

func New

func New() Trigger

func NewNoop

func NewNoop() Trigger

NewNoop creates a noop trigger, which returns nil for all channels. Note that receiving or sending on these channels will block forever. This means that all places where this is used will essentially have a polling implementation.

Jump to

Keyboard shortcuts

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