aboutsummaryrefslogtreecommitdiff
path: root/embassy-sync
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-sync')
-rw-r--r--embassy-sync/Cargo.toml2
-rw-r--r--embassy-sync/src/channel.rs5
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]
2name = "embassy-sync" 2name = "embassy-sync"
3version = "0.7.0" 3version = "0.7.1"
4edition = "2021" 4edition = "2021"
5description = "no-std, no-alloc synchronization primitives with async support" 5description = "no-std, no-alloc synchronization primitives with async support"
6repository = "https://github.com/embassy-rs/embassy" 6repository = "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")]
425pub type SendableDynamicReceiver<'ch, T> = SendDynamicReceiver<'ch, T>;
426
422impl<'ch, T> Clone for SendDynamicReceiver<'ch, T> { 427impl<'ch, T> Clone for SendDynamicReceiver<'ch, T> {
423 fn clone(&self) -> Self { 428 fn clone(&self) -> Self {
424 *self 429 *self