You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tokio's watch channel has a Sender::<T>::subscribe(&self) -> Receiver<T> function, allowing you to create new receivers from just a sender. This would make my uses of a watch channel simpler, while not having to pull in tokio as a library dependency. Since the watch channel state is held just by an Arc, I suspect this would be very straightforward to add.
Edit: I just noticed that you already have this subscribe() function for dispatch channels! So, very simple to add indeed.
The text was updated successfully, but these errors were encountered:
Tokio's watch channel has a
Sender::<T>::subscribe(&self) -> Receiver<T>
function, allowing you to create new receivers from just a sender. This would make my uses of a watch channel simpler, while not having to pull in tokio as a library dependency. Since the watch channel state is held just by anArc
, I suspect this would be very straightforward to add.Edit: I just noticed that you already have this
subscribe()
function for dispatch channels! So, very simple to add indeed.The text was updated successfully, but these errors were encountered: