Commit 6ec648e
committed
fix(notify): use publishAndTrack for DomainEvent co-publish in NotifyAction
The DomainEvent co-publish for binary mode used EventBus.publish() (fire-and-forget),
which creates untracked Tasks not counted by inFlightHandlers. As a result,
awaitPendingEvents() returned immediately and the binary exited before all
notification handlers completed — causing intermittent missing output on Linux
(faster GCD scheduling than macOS).
Switch to publishAndTrack() so each DomainEvent handler runs to completion
before NotifyAction moves to the next item in the collection. This ensures
awaitPendingEvents() correctly accounts for the in-flight handlers.1 parent 15a7b39 commit 6ec648e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
1104 | | - | |
| 1104 | + | |
1105 | 1105 | | |
1106 | 1106 | | |
1107 | 1107 | | |
| |||
0 commit comments