Spike Curtis
005ea536a5
fix: fix Listen/Unlisten race on Pubsub ( #15315 )
...
Fixes #15312
When we need to `Unlisten()` for an event, instead of immediately removing the event from the `p.queues`, we store a channel to signal any goroutines trying to Subscribe to the same event when we are done. On `Subscribe`, if the channel is present, wait for it before calling `Listen` to ensure the ordering is correct.
2024-11-01 14:35:26 +04:00
..
2024-08-26 15:04:04 +00:00
2024-10-01 11:04:51 -05:00
2024-11-01 14:36:12 +11:00
2024-11-01 14:53:53 +11:00
2024-10-31 17:55:42 -05:00
2024-11-01 14:36:12 +11:00
2024-11-01 14:36:12 +11:00
2024-11-01 14:36:12 +11:00
2024-10-25 12:14:15 -04:00
2024-10-25 12:14:15 -04:00
2024-08-26 15:04:04 +00:00
2024-08-21 14:18:58 +02:00
2024-04-23 12:43:14 +01:00
2024-10-22 09:20:54 -05:00
2024-11-01 14:36:12 +11:00
2024-07-11 11:26:47 -05:00
2024-11-01 14:35:26 +04:00
2024-11-01 14:36:12 +11:00
2022-05-02 19:30:46 +00:00
2024-08-26 15:04:04 +00:00
2024-10-25 12:14:15 -04:00
2024-10-25 12:14:15 -04:00
2024-11-01 14:36:12 +11:00
2023-09-13 13:28:46 +01:00
2024-09-24 10:51:49 +01:00
2023-11-28 17:04:25 +00:00
2024-09-19 19:12:44 +01:00
2024-10-22 09:20:54 -05:00
2024-10-22 09:20:54 -05:00
2024-11-01 14:36:12 +11:00
2024-10-29 09:57:40 +00:00
2023-09-04 19:01:11 +00:00
2023-09-04 19:01:11 +00:00
2024-11-01 14:36:12 +11:00
2024-11-01 14:36:12 +11:00
2024-11-01 14:36:12 +11:00
2024-11-01 14:36:12 +11:00
2024-10-25 12:14:15 -04:00
2024-10-25 12:14:15 -04:00
2024-11-01 14:36:12 +11:00
2024-09-24 10:51:49 +01:00