# async::WaitBase

## Summary

### Inheritance

Direct Known Subclasses:[async::Wait](https://fuchsia.dev/reference/cpp/class/async/wait), [async::WaitMethod\< Class, method \>](https://fuchsia.dev/reference/cpp/class/async/wait-method), [async::WaitOnce](https://fuchsia.dev/reference/cpp/class/async/wait-once), [async::WaitMethod\< component::DirectoryWatcher,\&component::DirectoryWatcher::OnWatchedEvent \>](https://fuchsia.dev/reference/cpp/class/async/wait-method)

| ### Protected functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base_1a447b50a82d11e35e31584b5fe404dcbe(zx_handle_t object, zx_signals_t trigger, uint32_t options, async_wait_handler_t *handler)` | ` `` ` |
| `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base_1a682a718fa29fbf52a4e3aacd6d018349(const https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base &)=delete` | ` `` ` |
| `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base_1a41c6984d404fb8aad14d467abf6d153f(https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base &&)=delete` | ` `` ` |
| `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base_1a86689f654d575c602afa44c9d80cf4ce(const https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base &)=delete` | `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base &` |
| `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base_1aef09d235b0b07907d88e25fe3852805a(https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base &&)=delete` | `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base &` |
| `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base_1a957a474d866ba3aa477e7ec56d8480cf()` | ` `` ` |

| ### Public functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base_1a5433fccf987c9c21aab28a71717071b7(async_dispatcher_t *dispatcher)` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base_1a11ec2a66ff3a2e3ae845266d367dae11()` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base_1a7d25b76b141b8d5f2523929113483266() const ` | `bool` |
| `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base_1a3d3a3669bbf6121c5058f0239d1e2794() const ` | `zx_handle_t` |
| `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base_1ac3b7687eb260885a91b8d8ba8346d4a0() const ` | `uint32_t` |
| `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base_1aa9029181a4d06e5fae2ffd503b50de39(zx_handle_t object)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base_1ad0f26fe6a090eda2485f761bc581d239(uint32_t options)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base_1a8241f0f1ee0e2150895e9ee52b26ff86(zx_signals_t trigger)` | `void` |
| `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base_1a8cbfe5d2ec0c9c6664908bba34b97d6a() const ` | `zx_signals_t` |

| ### Protected static functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/class/async/wait-base#classasync_1_1_wait_base_1a242e2ac396af637a846185f81bdc0173(https://fuchsia.dev/reference/cpp/struct/async-wait#structasync__wait *wait)` | `T *` |

## Protected functions

### WaitBase

```c++
 WaitBase(
  zx_handle_t object,
  zx_signals_t trigger,
  uint32_t options,
  async_wait_handler_t *handler
)
```

### WaitBase

```c++
 WaitBase(
  const WaitBase &
)=delete
```

### WaitBase

```c++
 WaitBase(
  WaitBase &&
)=delete
```

### operator=

```c++
WaitBase & operator=(
  const WaitBase &
)=delete
```

### operator=

```c++
WaitBase & operator=(
  WaitBase &&
)=delete
```

### \~WaitBase

```c++
 ~WaitBase()
```

## Public functions

### Begin

```c++
zx_status_t Begin(
  async_dispatcher_t *dispatcher
)
```

### Cancel

```c++
zx_status_t Cancel()
```

### is_pending

```c++
bool is_pending() const 
```

### object

```c++
zx_handle_t object() const 
```

### options

```c++
uint32_t options() const 
```

### set_object

```c++
void set_object(
  zx_handle_t object
)
```

### set_options

```c++
void set_options(
  uint32_t options
)
```

### set_trigger

```c++
void set_trigger(
  zx_signals_t trigger
)
```

### trigger

```c++
zx_signals_t trigger() const 
```

## Protected static functions

### Dispatch

```c++
T * Dispatch(
  async_wait *wait
)
```