Closed zeenix closed 1 year ago
The static lifetime allows the Send to be kept around in the same place/type as Sender w/o running into self-reference issues.
Send
Sender
Since the inner struct is in an Arc, cloning is cheap and this change doesn't affect the performance of Sender::broadcast.
Arc
Sender::broadcast
We could just drop the lifetime parameter entirely at this point but let's keep it for backwards compatibility.
Fixes #39.
Converting to draft until we can be certain this is really justified.
Closing this. See discussion in #39 for reasons.
The static lifetime allows the
Send
to be kept around in the same place/type asSender
w/o running into self-reference issues.Since the inner struct is in an
Arc
, cloning is cheap and this change doesn't affect the performance ofSender::broadcast
.We could just drop the lifetime parameter entirely at this point but let's keep it for backwards compatibility.
Fixes #39.