class TaskClosure

Defined at line 187 of file ../../sdk/lib/async/include/lib/async/cpp/task.h

A task whose handler is bound to a |fit::closure| function with no arguments.

The closure is not invoked when errors occur since it doesn't have a |zx_status_t|

argument.

Prefer using |async::TaskClosureMethod| instead for binding to a fixed class member

function since it is more efficient to dispatch.

Public Methods

void TaskClosure (fit::closure handler)

Defined at line 109 of file ../../sdk/lib/async/task.cc

void ~TaskClosure ()

Defined at line 112 of file ../../sdk/lib/async/task.cc

void set_handler (fit::closure handler)

Defined at line 192 of file ../../sdk/lib/async/include/lib/async/cpp/task.h

bool has_handler ()

Defined at line 193 of file ../../sdk/lib/async/include/lib/async/cpp/task.h