# zx::task

## Summary

### Inheritance

Inherits from: [zx::object\< T \>](https://fuchsia.dev/reference/cpp/class/zx/object)

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/task#classzx_1_1task_1a7fa853af87fb80263fc9765ba2fabacc()` ||
| `https://fuchsia.dev/reference/cpp/class/zx/task#classzx_1_1task_1ae42eed80bdc210a7e0668ee07d749ca1(zx_handle_t value)` ||
| `https://fuchsia.dev/reference/cpp/class/zx/task#classzx_1_1task_1a60f290b891e1a089d26cd20ec75f744b(https://fuchsia.dev/reference/cpp/class/zx/object#classzx_1_1object && h)` ||
| `https://fuchsia.dev/reference/cpp/class/zx/task#classzx_1_1task_1a27b638fc3743e376b69c064c26d52241(https://fuchsia.dev/reference/cpp/class/zx/task#classzx_1_1task && other)` ||

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/zx/task#classzx_1_1task_1a280fc6acdd1232cf757dc22dc21c027c(uint32_t options, https://fuchsia.dev/reference/cpp/class/zx/object#classzx_1_1object< https://fuchsia.dev/reference/cpp/class/zx/channel#classzx_1_1channel > *channel)` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/class/zx/task#classzx_1_1task_1aab92336405a62042796808a8b5caf62e()` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/class/zx/task#classzx_1_1task_1a9b64a56ab5148fd4a76f834afd41ced1(https://fuchsia.dev/reference/cpp/class/zx/suspend-token#classzx_1_1suspend__token *result)` | `zx_status_t` |

## Public functions

### create_exception_channel

```c++
zx_status_t create_exception_channel(
  uint32_t options,
  object< channel > *channel
)
```

### kill

```c++
zx_status_t kill()
```

### suspend

```c++
zx_status_t suspend(
  suspend_token *result
)
```

### task

```c++
constexpr task()=default
```

### task

```c++
 task(
  zx_handle_t value
)
```

### task

```c++
 task(
  handle && h
)
```

### task

```c++
 task(
  task && other
)
```