Skip to content

Commit f49114a

Browse files
committed
add comment
1 parent e442ce4 commit f49114a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/samples/batch/workflow.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func BatchWorkflow(ctx workflow.Context, input BatchWorkflowInput) error {
4949
})
5050
futures.Send(ctx, workflow.ExecuteActivity(aCtx, BatchActivity, taskID))
5151
}
52+
// close the channel to signal the task result collector that no more tasks are coming
5253
futures.Close()
5354

5455
wg.Wait(ctx)

0 commit comments

Comments
 (0)