Oliver Rockstedt
bf60b239e8
embassy-sync: fixed some clippy warnings
2024-10-07 18:05:15 +02:00
Nathan Perry
893b8d79e8
embassy_sync/pubsub: fix PubSubBehavior visibility
...
https://github.com/embassy-rs/embassy/pull/2969 appears to have broken
direct `publish_immediate()` on `pubsub::Channel`, as it functionally
made `PubSubBehavior` private and didn't delegate this method to the new
(private) `SealedPubSubBehavior`.
This change moves `publish_immediate`, `capacity`, and `is_full` from
`SealedPubSubBehavior` to `PubSubBehavior` in order to restore them to
`pub` visibility.
2024-09-19 08:44:45 -04:00
dvdsk
871fe3a549
Add Clone and Copy to Error types
...
None of them are `non-exaustative`, they are all small enough to be copy
(I estimate none are larger than 4 bytes).
2024-06-06 23:19:07 +02:00
Oliver Rockstedt
bbeba7f014
embassy-sync: Add clear function to all channels
2024-05-22 14:54:09 +02:00
Oliver Rockstedt
aee9d5902a
embassy-sync: fixed some documentation typos
2024-05-22 00:54:52 +02:00
Dion Dokter
a76082b104
Expose new length functions in the subs and pubs
2024-05-20 15:34:03 +02:00
Dion Dokter
2a4a714060
Make behaviour trait sealed
2024-05-20 15:18:10 +02:00
Oliver Rockstedt
ab89993451
embassy-sync: Add capacity, free_capacity, len, is_empty and is_full functions to PubSubChannel
2024-05-18 14:01:23 +02:00
Dario Nieuwenhuis
3081ecf301
sync: do will_wake check in MultiWakerRegistration.
2023-05-26 13:17:39 +02:00
Rasmus Melchior Jacobsen
ce7bd6955f
perf(pubsub): Skip clone on last message
2023-03-21 13:25:49 +01:00
Rasmus Melchior Jacobsen
472df3fad6
fix(pubsub): Pop messages which count is 0 after unsubscribe
2023-03-15 16:45:18 +01:00
Dion Dokter
874384826d
Went back to named futures but now with must_use
2022-09-29 15:15:10 +02:00
Dion Dokter
f4ebc36b63
Futures in pub & sub are now awaited instead of returned for better user compiler diagnostics.
...
Added functions for reading how many messages are available
2022-09-29 14:24:42 +02:00
Dario Nieuwenhuis
5677b13a86
sync: flatten module structure.
2022-08-22 22:18:13 +02:00