Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/martindevans/rust_message_bus
https://github.com/martindevans/rust_message_bus
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/martindevans/rust_message_bus
- Owner: martindevans
- Created: 2015-04-27T01:16:55.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-27T01:29:12.000Z (almost 10 years ago)
- Last Synced: 2024-12-29T18:23:56.609Z (28 days ago)
- Language: Rust
- Size: 117 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
This is an implementation of a "message bus" which buffers messages and sends them at the correct timestamp. When a message is sent it is sent with a timestamp, e.g.
bus.sender.send(Message::::new(value, receive_time));
The message will not be received by anything until that time arrives. i.e.
bus.tick(time);
Where time >= receive_time given when sending. When receive_time has arrived the message will be sent to bus.output_receiver