Function stakker_async_await::current_task [−][src]
pub fn current_task(deferrer: &mut Deferrer) -> Option<Task>
Get a reference to the current task
Returns a reference to the task if we’re running within one, or
else returns None
. The returned stakker::task::Task
can be
saved and used to resume the execution of the future when new data
becomes available.