Skip to content

Commit ddb136a

Browse files
authored
Merge pull request #53 from patchlevel/docs-shared-event-dispatcher
Warn about sharing an event dispatcher between workers
2 parents 479114d + 5af605d commit ddb136a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎docs/events.md‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,9 @@ $worker = DefaultWorker::create(
4848
$logger,
4949
$eventDispatcher,
5050
);
51-
```
51+
```
52+
:::warning
53+
`create` registers the limit listeners on the given event dispatcher.
54+
If you create multiple workers with the same event dispatcher, all of them share each other's limits.
55+
Use a separate event dispatcher per worker.
56+
:::

0 commit comments

Comments
 (0)