drop_impl

Function drop_impl 

Source
pub fn drop_impl<H, S>(inner: &mut Option<H>, stop_tx: &mut Option<S>)
where H: Abortable, S: Stoppable,
Expand description

Drop-time logic for stream handles:

  • send a best-effort stop signal if present
  • abort the task if it hasn’t finished yet