Please enable JavaScript.
Coggle requires JavaScript to display documents.
liublk-rs async - Coggle Diagram
liublk-rs async
design
UblkAOP
implement Future traits
object is returned to user for await
wake is saved in UblkIOCtx
abstract as one state(Enum)
MultishotCQE
provide one Fn() for mark completion
doable?
model
future object
save waker somewhere in case of pending
lifetime vs. pin
policy
async or not
do not support both
ideas
how to support async event
google or chatgpt first
such as qcow2 cache
save waker into the cache object
wakeup after the cache is update
implement poll for such Future trait
return one such Future
is it possible to take tokio_uring?
top future object
spawn
join!()?
define in UblkIOCtx
local executor
how to support local executor for relaxing Send
where to store
lifetime
user interface
async block or func is called in user Fn or FnMut
how to handle the top Future object?
does it have to be dealt with?
op Future object is saved into UblkIOCtx
problemes
lifetime
future
Box:pin(future)
requires future lifetime is static
parameter of io handler can't be static
or can't know how to do that
store futures into one temp vector?
required info for handling IO
how to group this kind of info and provide to async future
readonly
3 more items...
RW
2 more items...
related Rust tech
std::thread::scope