Skip to main content

destroy_channel

Function destroy_channel 

Source
pub fn destroy_channel(id: ChanId) -> Result<(), ChannelError>
Expand description

Destroy a channel: remove it from the registry and wake all waiters.

After this call, any thread still holding an Arc<SyncChan> to the same channel will see Err(Disconnected) on the next send/recv.