Please enable JavaScript.
Coggle requires JavaScript to display documents.
Rust async - Coggle Diagram
Rust async
core concepts
future
when is its object created?
it is bound with async fn or block?
complicated cases
what if nested async fn?
join!(a0, a1, ..., an)
async/await
async fn
Calling async function doesn't execute it
async fn returns Future object
async fn is executed until the Future object is awaited.
is there nested Future object?
generated code
poll_fn(closure)
async executor
responsibilty
for polling the future returned by the async function
others
async mutex
can async_std.mutex be used in this simple executor?
I guess it can't
avoid to lock across .await
how to choose executor
the simplest & efficient way
self-cook executor
async_std
futures_executor
smol
ideas
generic runtime/executor
do they support to define user future?
spawn_blocking
offload
Send
wakeup implementation for home cooked executor
how to build Context?
Waker
summery
lifetime
hard problem
Executor
spawn
wakeup
Contex
future
async/await
join!()