Function devices::virtio::async_utils::await_and_exit
source · pub async fn await_and_exit(ex: &Executor, event: Event) -> Result<()>
Expand description
Async task that waits for a signal from event
. Once this event is readable, exit. Exiting
this future will cause the main loop to break and the worker thread to exit.