Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents the abstract base interface other Signal interfacees are derived from. Allows all signals to be waited on.

see

Semaphore

see

CountdownSignal

see

AutoResetSignal

see

ManualResetSignal

Hierarchy

Index

Methods

Methods

  • ready(): Promise<void>
  • Queues the caller until the signal is placed into a signaled state.

    example
    const signals = [
    signals.manualReset(),
    signals.autoReset(),
    signals.semaphore(),
    signals.countdown(),
    ];

    await Promise.all(signals.map(signal => signal.ready()));

    Returns Promise<void>

    A Promise that will be resolved when the signal is placed into a signaled state.