Post

And the gathering and sharing of all the tools in my toolbox continues: core_bus (pronounced corvus) - const Events with type safety, no choke points, callbacks for performance and streams if you need'em. replayable events as well. no deps either. #opensource pub.dev/packages/cor...

pub.devcore_bus | Dart packageA lightweight, type-safe Event Bus for Dart with optional event replaying. Decouples asynchronous code with minimal overhead.

1 repost5 likes

Let me know if you run into any issues. I wrote this a long time ago and have been carting it around in a private repo for a while. I did a clean it up pass, redone with callbacks (al'la changenotifier), and added the stream extension. Replay streams are also a sneaky form of injection :)