diff options
Diffstat (limited to 'embassy-sync')
| -rw-r--r-- | embassy-sync/Cargo.toml | 2 | ||||
| -rw-r--r-- | embassy-sync/src/channel.rs | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/embassy-sync/Cargo.toml b/embassy-sync/Cargo.toml index 9e5c39f5e..e60f5e34c 100644 --- a/embassy-sync/Cargo.toml +++ b/embassy-sync/Cargo.toml | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | [package] | 1 | [package] |
| 2 | name = "embassy-sync" | 2 | name = "embassy-sync" |
| 3 | version = "0.7.0" | 3 | version = "0.7.1" |
| 4 | edition = "2021" | 4 | edition = "2021" |
| 5 | description = "no-std, no-alloc synchronization primitives with async support" | 5 | description = "no-std, no-alloc synchronization primitives with async support" |
| 6 | repository = "https://github.com/embassy-rs/embassy" | 6 | repository = "https://github.com/embassy-rs/embassy" |
diff --git a/embassy-sync/src/channel.rs b/embassy-sync/src/channel.rs index a0e39fcb5..8e9fcc234 100644 --- a/embassy-sync/src/channel.rs +++ b/embassy-sync/src/channel.rs | |||
| @@ -419,6 +419,11 @@ pub struct SendDynamicReceiver<'ch, T> { | |||
| 419 | pub(crate) channel: &'ch dyn DynamicChannel<T>, | 419 | pub(crate) channel: &'ch dyn DynamicChannel<T>, |
| 420 | } | 420 | } |
| 421 | 421 | ||
| 422 | /// Receive-only access to a [`Channel`] without knowing channel size. | ||
| 423 | /// This version can be sent between threads but can only be created if the underlying mutex is Sync. | ||
| 424 | #[deprecated(since = "0.7.1", note = "please use `SendDynamicReceiver` instead")] | ||
| 425 | pub type SendableDynamicReceiver<'ch, T> = SendDynamicReceiver<'ch, T>; | ||
| 426 | |||
| 422 | impl<'ch, T> Clone for SendDynamicReceiver<'ch, T> { | 427 | impl<'ch, T> Clone for SendDynamicReceiver<'ch, T> { |
| 423 | fn clone(&self) -> Self { | 428 | fn clone(&self) -> Self { |
| 424 | *self | 429 | *self |
