Closed phil-opp closed 2 years ago
Thanks so much, this is a great PR!
Would you be looking for a new release for this change?
Thanks for merging! A new release would be great, but we have a workaround for now and are fine with waiting a bit.
Is there a new release planned? I'm interested in this, but it doesn't appear to be in 0.10.14
I've just released 0.11.0
with these changes :)
Creates a
WeakSender
type, which can be constructed through a newSender::downgrade
method. Similar to thesync::Weak
of the standard library, theWeakSender
does not count towards ownership. That means that the channel is closed as soon as allSender
s are closed, even if there are still activeWeakSender
s.Resolves #107