fn close(&self) {
        let prev = State::set_closed(&self.state);

        if prev.is_tx_task_set() && !prev.is_complete() {
            self.tx_task.with(|ptr| unsafe { (&*ptr).notify() });
        }
    }
/// Called by `Receiver` to indicate that the value will never be received.
Called by `Receiver` to indicate that the value will never be received.
Called by ` Receiver ` to indicate that the value will never be received .
fn close(&self) {
        let prev = State::set_closed(&self.state);
        if prev.is_tx_task_set() && !prev.is_complete() {
            self.tx_task.with(|ptr| unsafe { (&*ptr).notify() });
        }
    }
fn close ( & self ) { let prev = State :: set_closed ( & self . state ) ; if prev . is_tx_task_set ( ) && ! prev . is_complete ( ) { self . tx_task . with ( | ptr | unsafe { ( & * ptr ) . notify ( ) } ) ; } }
Called by `Receiver` to indicate that the value will never be received.
Called by ` Receiver ` to indicate that the value will never be received .
&self