Skip to content

Commit c51a879

Browse files
authored
Merge pull request #107286 from shibayan/patch-1
Update durable-functions-external-events.md
2 parents 3e5674b + af9443b commit c51a879

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/azure-functions/durable/durable-functions-external-events.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ import azure.functions as func
6363
import azure.durable_functions as df
6464

6565
def orchestrator_function(context: df.DurableOrchestrationContext):
66-
approved = context.wait_for_external_event('Approval')
66+
approved = yield context.wait_for_external_event('Approval')
6767
if approved:
6868
# approval granted - do the approved action
6969
else:
@@ -169,7 +169,7 @@ def orchestrator_function(context: df.DurableOrchestrationContext):
169169
event2 = context.wait_for_external_event('Event2')
170170
event3 = context.wait_for_external_event('Event3')
171171

172-
winner = context.task_any([event1, event2, event3])
172+
winner = yield context.task_any([event1, event2, event3])
173173
if winner == event1:
174174
# ...
175175
elif winner == event2:
@@ -426,4 +426,4 @@ In this case, the instance ID is hardcoded as *MyInstanceId*.
426426
> [Learn how to implement error handling](durable-functions-error-handling.md)
427427
428428
> [!div class="nextstepaction"]
429-
> [Run a sample that waits for human interaction](durable-functions-phone-verification.md)
429+
> [Run a sample that waits for human interaction](durable-functions-phone-verification.md)

0 commit comments

Comments
 (0)