Function mioco::shutdown
[−]
[src]
pub fn shutdown() -> !
Shutdown current mioco instance.
Call from inside of a mioco instance to shut it down. All existing coroutines will be forced in to panic, and their stack unwind.
To shutdown mioco instance from the outside, spawn a coroutine that shuts it down from the inside after receiving a chanel message.