Function toggle_from_mpsc_unbounded_recv

pub fn toggle_from_mpsc_unbounded_recv<T, C>(
    rx: UnboundedReceiver<T>,
    cancel: C,
) -> Arc<AtomicBool>
where T: Send + 'static, C: Future + Send + 'static,