aboutsummaryrefslogtreecommitdiff
path: root/embassy-sync/src/channel.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-sync/src/channel.rs')
-rw-r--r--embassy-sync/src/channel.rs5
1 files changed, 5 insertions, 0 deletions
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