notifier

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package notifier provides a one-shot notifier for gate synchronization. Used by voicemail extension gates to wait until classification (conversation/voicemail) is decided.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

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

Notifier is a one-shot signal. Wait blocks until Notify is called or context is cancelled.

func New

func New() *Notifier

New returns a new Notifier.

func (*Notifier) Notify

func (n *Notifier) Notify()

Notify signals all waiters. Idempotent after the first call.

func (*Notifier) Reset

func (n *Notifier) Reset()

Reset makes the notifier usable again (for tests). Not safe to call concurrently with Wait.

func (*Notifier) Wait

func (n *Notifier) Wait(ctx context.Context) error

Wait blocks until Notify has been called or ctx is cancelled.

Jump to

Keyboard shortcuts

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