Function workflow_core::trigger::trigger

source ·
pub fn trigger() -> (Trigger, Listener)
Expand description

Returns a Trigger and Listener pair bound to each other.

The Listener is used to wait for the trigger to fire. It can be waited on both sync and async.