# async::Wait

## Summary

### Inheritance

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

| ### Constructors and Destructors ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/async/wait#classasync_1_1_wait_1aaf773a66097f9428397ff444ff37e1a6(zx_handle_t object, zx_signals_t trigger, uint32_t options, https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl handler)` ||
| `https://fuchsia.dev/reference/cpp/class/async/wait#classasync_1_1_wait_1a9f6436dde0587ba50dbe01ea0014fdaf()` ||

| ### Public types ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/async/wait#classasync_1_1_wait_1a2d5562e2e1a773a272429e76277ff124` | using `https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl< void(async_dispatcher_t *dispatcher, https://fuchsia.dev/reference/cpp/class/async/wait#classasync_1_1_wait *wait, zx_status_t status, const https://fuchsia.dev/reference/cpp/struct/zx-packet-signal#structzx__packet__signal *signal)>` |

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/async/wait#classasync_1_1_wait_1a57059cac48e00b2c6ca1a03adc7e6695() const ` | `bool` |
| `https://fuchsia.dev/reference/cpp/class/async/wait#classasync_1_1_wait_1a8e73e472e43d80438dba5b7de1dedf03(https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl handler)` | `void` |

## Public types

### Handler

```c++
fit::function< void(async_dispatcher_t *dispatcher, async::Wait *wait, zx_status_t status, const zx_packet_signal_t *signal)> Handler
```

## Public functions

### Wait

```c++
 Wait(
  zx_handle_t object,
  zx_signals_t trigger,
  uint32_t options,
  Handler handler
)
```

### has_handler

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

### set_handler

```c++
void set_handler(
  Handler handler
)
```

### \~Wait

```c++
 ~Wait()
```