trigger

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package trigger carries coalescing "something changed" notifications from event sources to the recompute scheduler (D-019). A notification starts a recompute; it proves nothing about the data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signal

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

Signal coalesces notifications: any number of Notify calls between two receives on C deliver once. A nil *Signal is valid and never delivers.

func New

func New() *Signal

New returns a Signal with nothing pending.

func (*Signal) C

func (s *Signal) C() <-chan struct{}

C delivers one value per pending notification batch. It is nil for a nil Signal, so a select on it blocks forever.

func (*Signal) Notify

func (s *Signal) Notify()

Notify marks a change pending. It never blocks and does nothing on a nil Signal.

Jump to

Keyboard shortcuts

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