Skip to content

Commit 7bf2a9a

Browse files
authored
Revise concurrency.md for updated activities and children
Updated the concurrency documentation to reflect changes in activities and child workflows.
1 parent 70e7d99 commit 7bf2a9a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/features/concurrency.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ class MyWorkflow extends Workflow
2020
{
2121
return [
2222
yield activity(MyActivity1::class),
23-
yield activity(MyActivity1::class),
24-
yield activity(MyActivity1::class),
23+
yield activity(MyActivity2::class),
24+
yield activity(MyActivity3::class),
2525
];
2626
}
2727
}
@@ -90,9 +90,9 @@ You can pass child workflows to `all()` along with other activities. It works th
9090
use function Workflow\{all, child};
9191

9292
$results = yield all([
93-
child(ChildA::class),
94-
child(ChildB::class),
95-
child(ChildC::class),
93+
child(MyChild1::class),
94+
child(MyChild2::class),
95+
child(MyChild3::class),
9696
]);
9797
```
9898

0 commit comments

Comments
 (0)