Ultra fast asyncio event loop.
-
Updated
Jul 10, 2020 - Python
futures-preview = { version = "0.3.0-alpha.19", features = [ "async-await" ] } in Cargo.toml as recommended in §3.1.use futures::channel::mpsc; // 1
use futures::sink::SinkExt;
use std::sync::Arc;
type Sender<T> = mpsc::UnboundedSender<T>; // 2
type Receiver<T> = Add a description, image, and links to the async-await topic page so that developers can more easily learn about it.
To associate your repository with the async-await topic, visit your repo's landing page and select "manage topics."
What should happen if deliver_cancel raises an exception? In the current implementation, the shielded cancel scope will prevent it from propagating until the process exits, which might take a while if the crash occurred before signaling the process in any way. Maybe on exception from a user-specified deliver_cancel we should call the default deliver_cancel to kill the process? Or just kill() since