WaitTrigger

virtual PSignal ILatch::WaitTrigger(double timeout) = 0

Waits until the latch is triggered, or the timeout interval is exceeded.

Parameters

timeout – Interval in seconds to wait for trigger. Negative value means infinite.

Returns

PSignal – Data source signal.

Throws
Remarks

Returns at entry of ELatchState::Triggered. Additionally, if configured with ELatchTriggerMode::OneShot, this function also returns if the latch is already triggered. Execution requires one subscription resource.