awaitOn method

FlowStepControl awaitOn(
  1. FlowContext step, {
  2. DateTime? deadline,
  3. Map<String, Object?>? data,
})

Registers a low-level flow-control wait while keeping the typed event ref on the call site.

Implementation

FlowStepControl awaitOn(
  FlowContext step, {
  DateTime? deadline,
  Map<String, Object?>? data,
}) {
  return step.awaitEvent(
    topic,
    deadline: deadline,
    data: data,
  );
}