wait method
Suspends until this event is emitted, then returns the decoded payload.
Implementation
Future<T> wait(
WorkflowResumeContext waiter, {
DateTime? deadline,
Map<String, Object?>? data,
}) {
return waiter.waitForEvent<T>(
topic: topic,
deadline: deadline,
data: data,
codec: codec,
);
}