We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 845749b + 9b20ffd commit 02ec784Copy full SHA for 02ec784
workflows/javascript/sdk/order-processor/orderProcessingWorkflow.ts
@@ -87,7 +87,7 @@ export const orderProcessingWorkflow: TWorkflow = async function* (ctx: Workflow
87
tasks.push(approvalEvent);
88
const timeOutEvent = ctx.createTimer(30);
89
tasks.push(timeOutEvent);
90
- const winner = ctx.whenAny(tasks);
+ const winner = yield ctx.whenAny(tasks);
91
92
if (winner == timeOutEvent) {
93
const orderNotification: OrderNotification = {
0 commit comments