Returns a Send-safe future that completes when the signal fires. Unlike `StartSignal` itself, the returned future does not retain a reference to the token, so it cannot be used for `drop_on_fire` or `has_fired` checks.
(self)
| 1674 | /// Unlike `StartSignal` itself, the returned future does not retain a reference to the token, |
| 1675 | /// so it cannot be used for `drop_on_fire` or `has_fired` checks. |
| 1676 | pub fn into_send_future(self) -> impl Future<Output = ()> + Send { |
| 1677 | use futures::FutureExt; |
| 1678 | self.fut.map(|_| ()) |
| 1679 | } |
| 1680 | |
| 1681 | pub fn drop_on_fire(&self, to_drop: Box<dyn Any>) { |
| 1682 | if let Some(token) = self.token_ref.upgrade() { |
no test coverage detected