mirror of
https://codeberg.org/JasterV/event_bus.rs.git
synced 2026-04-26 18:10:02 +00:00
Update README.md
This commit is contained in:
parent
087383a598
commit
15bfcc479f
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ async fn main() {
|
|||
* `EventBus::builder() -> EventBusBuilder` – create a new bus builder
|
||||
* `EventBus::subscribe(&self, topic: &str) -> Subscription` – subscribe to a topic
|
||||
* `EventBus::publish(&self, topic: &str, data: &[u8]) -> Result<(), PublishError>` – publish a message
|
||||
* `Subscription` implements `futures::Stream<Item = Result<Payload, SubscriptionStreamRecvError>>`
|
||||
* `Subscription` implements `futures::Stream<Item = Arc<[u8]>>`
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue