Skip to content

Commit

Permalink
Update concurrency.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcdaniel authored Jan 31, 2024
1 parent 0a80d8c commit 2f397a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/features/concurrency.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class MyWorkflow extends Workflow
}
```

The main difference between the serial example and the parallel execution example is the number of `yield` statements. In the serial example, there are 3 `yield` statements, one for each activity. This means that the workflow will pause and wait for each activity to complete before continuing to the next one. In the parallel example, there is only 1 `yield` statement, which wraps all of the activities in a call to ActivityStub::all(). This means that all of the activities will be executed in parallel, and the workflow will pause and wait for all of them to complete as a group before continuing.
The main difference between the serial example and the parallel execution example is the number of `yield` statements. In the serial example, there are 3 `yield` statements, one for each activity. This means that the workflow will pause and wait for each activity to complete before continuing to the next one. In the parallel example, there is only 1 `yield` statement, which wraps all of the activities in a call to `ActivityStub::all()`. This means that all of the activities will be executed in parallel, and the workflow will pause and wait for all of them to complete as a group before continuing.

## Mix and Match

Expand Down

0 comments on commit 2f397a4

Please sign in to comment.