Releases: an-dr/pubsub-bus
Releases · an-dr/pubsub-bus
v3.1.0
v3.0.0
-
🚌 EventBus
- Add topics, so subscribers can receive only events they subscribed.
- Hide thread-safety related details
- Huge refactoring and clean up
- Add
EventBus::add_subscriber_sharedto add subscriber without move
-
📤 Publisher
- Expose Publisher::publish()
- Add unique publisher ID to event header as
source_id
v2.0.0
- 🚌 EventBus
- Hide mutexes inside the struct
- Add marking events with unique event IDs
- Not both subs and pubs are connected using
add_publisher/add_subscribermethods
- 📤 Publisher:
- Rename Publisher->EventEmitter
- Add Publisher trait
- EventEmitter (ex Publisher) now accept bare type without an Event wrapper (done internally)
- Replace
new(bus)method withnew(),set_bus(bus)andwith_bus(bus)