async::TaskBase

Summary

Inheritance

Direct Known Subclasses:async::Task, async::TaskClosure, async::TaskClosureMethod< Class, method >, async::TaskMethod< Class, method >

Protected functions

TaskBase(async_task_handler_t *handler)
TaskBase(const TaskBase &)=delete
TaskBase(TaskBase &&)=delete
operator=(const TaskBase &)=delete
operator=(TaskBase &&)=delete
~TaskBase()

Public functions

Cancel()
zx_status_t
Post(async_dispatcher_t *dispatcher)
zx_status_t
PostDelayed(async_dispatcher_t *dispatcher, zx::duration delay)
zx_status_t
PostForTime(async_dispatcher_t *dispatcher, zx::time deadline)
zx_status_t
is_pending() const
bool
last_deadline() const

Protected static functions

Dispatch(async_task_t *task)
T *

Protected functions

TaskBase

 TaskBase(
  async_task_handler_t *handler
)

TaskBase

 TaskBase(
  const TaskBase &
)=delete

TaskBase

 TaskBase(
  TaskBase &&
)=delete

operator=

TaskBase & operator=(
  const TaskBase &
)=delete

operator=

TaskBase & operator=(
  TaskBase &&
)=delete

~TaskBase

 ~TaskBase()

Public functions

Cancel

zx_status_t Cancel()

Post

zx_status_t Post(
  async_dispatcher_t *dispatcher
)

PostDelayed

zx_status_t PostDelayed(
  async_dispatcher_t *dispatcher,
  zx::duration delay
)

PostForTime

zx_status_t PostForTime(
  async_dispatcher_t *dispatcher,
  zx::time deadline
)

is_pending

bool is_pending() const 

last_deadline

zx::time last_deadline() const 

Protected static functions

Dispatch

T * Dispatch(
  async_task_t *task
)