Skip to content

Commit 5e7bd9d

Browse files
Update new examples to use wait_for_any, wait_until
1 parent 51e2772 commit 5e7bd9d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/workflows/query_workflow.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def execute
1414
@last_signal_received = signal
1515
end
1616

17-
workflow.wait_for { last_signal_received == "finish" }
17+
workflow.wait_until { last_signal_received == "finish" }
1818
@state = "finished"
1919

2020
{

examples/workflows/wait_for_named_signal_workflow.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def execute(expected_signal)
2020
end
2121

2222
timeout_timer = workflow.start_timer(1)
23-
workflow.wait_for(timeout_timer)
23+
workflow.wait_for_any(timeout_timer)
2424

2525
{ received: signals_received, counts: signal_counts }
2626
end

0 commit comments

Comments
 (0)