aboutsummaryrefslogtreecommitdiff
path: root/embassy-sync/src/channel.rs
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2025-08-12 20:23:20 +0200
committerUlf Lilleengen <[email protected]>2025-08-12 21:05:32 +0200
commitc7b9060a7443cd004d366586c418a3d95bf3447a (patch)
tree38483f5642f1364a9323fcf99a5bdf9434dd5df0 /embassy-sync/src/channel.rs
parentac46e28c4b4f025279d8974adfb6120c6740e44e (diff)
fix: prepare embassy-sync 0.7.1 release
* Add newtype for moved type to preserve API compat
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