HF RL Explorer

The EventBus exhibits several correctness and thread‑safety issues under concurrent use, and it lacks a safe…

The EventBus exhibits several correctness and thread‑safety issues under concurrent use, and it lacks a safe…: a task in LegoFlow-SWE (Harbor dataset). Expected behaviour: - subscribe() must return bool – true on success, false on failure. - Calling subscribe() with a nullptr listener must return…

The task

**Expected behaviour:** - `subscribe()` must return `bool` – `true` on success, `false` on failure. - Calling `subscribe()` with a `nullptr` listener must return `false` and leave the consumer count unchanged. - Once the bus has been started, any further call to `subscribe()` must return `false` and must not add a…

Part of Lego-X/LegoFlow-SWE.