# async::TaskClosure

## Summary

### Inheritance

Inherits from: [async::TaskBase](https://fuchsia.dev/reference/cpp/class/async/task-base)

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/async/task-closure#classasync_1_1_task_closure_1a67a0765f7875675e3ea2a4ae8f3588db(https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl handler)` ||
| `https://fuchsia.dev/reference/cpp/class/async/task-closure#classasync_1_1_task_closure_1a0b0933c6f70f9585e66cf5236fbd2dfd()` ||

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/async/task-closure#classasync_1_1_task_closure_1ad15ff3e1f830b0ee0a39d052c08310fc() const ` | `bool` |
| `https://fuchsia.dev/reference/cpp/class/async/task-closure#classasync_1_1_task_closure_1ae45e88842cb85adc1cac59ab283c9e31(https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl handler)` | `void` |

## Public functions

### TaskClosure

```c++
 TaskClosure(
  fit::closure handler
)
```

### has_handler

```c++
bool has_handler() const 
```

### set_handler

```c++
void set_handler(
  fit::closure handler
)
```

### \~TaskClosure

```c++
 ~TaskClosure()
```