abstract virtual class concurrent::Async

sys::Obj
  concurrent::Async : concurrent::Promise<Async^T>

@NoPeer

awaitRes

Obj? awaitRes

resolved value

err

virtual override Err? err

err in async task

isDone

virtual override Bool isDone()

nextStep

protected abstract Bool nextStep()

result

virtual override Async^T? result { protected set }

async function final return result

sleep

static Promise<Obj?> sleep(Duration d)

state

protected Int state := 0

execute step state

step

Bool step()

run next step call by AsyncRunner

then

virtual override Void then(Func<Void,Async^T?,Err?> f)