# async Namespace

# async

## Summary

| ### Functions ||
|---|---|
| `https://fuchsia.dev/reference/cpp/namespace/async#namespaceasync_1a2183dbb7b560d8ea60931ca2ac13f86c(async_dispatcher_t **dispatcher, async_test_subloop_t **loop)` | `void` |
| `https://fuchsia.dev/reference/cpp/namespace/async#namespaceasync_1a111766830d7c13dbbade5600f2d6e9fa(async_dispatcher_t *dispatcher)` | `https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time` |
| `https://fuchsia.dev/reference/cpp/namespace/async#namespaceasync_1a8c05b1511c647af1979ac3aa02122792(async_dispatcher_t *dispatcher, https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl handler, https://fuchsia.dev/reference/cpp/class/zx/duration#classzx_1_1duration delay)` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/namespace/async#namespaceasync_1a67ac63ed0d9dd782c028ce4ec24d0c15(async_dispatcher_t *dispatcher, https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl handler)` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/namespace/async#namespaceasync_1a0f7304e400910e6026670439a8944b47(async_dispatcher_t *dispatcher, https://fuchsia.dev/reference/cpp/class/fit/function-impl#classfit_1_1function__impl handler, https://fuchsia.dev/reference/cpp/class/zx/basic-time#classzx_1_1basic__time deadline)` | `zx_status_t` |
| `https://fuchsia.dev/reference/cpp/namespace/async#namespaceasync_1a2c9a08186da92e572bd32fae1f6482de("mutex") sequence_checker final` | `class` |

| ### Classes ||
|---|---|
| [async::Context](https://fuchsia.dev/reference/cpp/class/async/context) |   |
| [async::Executor](https://fuchsia.dev/reference/cpp/class/async/executor) |   |
| [async::GuestBellTrap](https://fuchsia.dev/reference/cpp/class/async/guest-bell-trap) |   |
| [async::GuestBellTrapBase](https://fuchsia.dev/reference/cpp/class/async/guest-bell-trap-base) |   |
| [async::GuestBellTrapMethod](https://fuchsia.dev/reference/cpp/class/async/guest-bell-trap-method) |   |
| [async::Irq](https://fuchsia.dev/reference/cpp/class/async/irq) |   |
| [async::IrqBase](https://fuchsia.dev/reference/cpp/class/async/irq-base) |   |
| [async::IrqMethod](https://fuchsia.dev/reference/cpp/class/async/irq-method) |   |
| [async::Loop](https://fuchsia.dev/reference/cpp/class/async/loop) | C++ wrapper for an asynchronous dispatch loop. |
| [async::LoopInterface](https://fuchsia.dev/reference/cpp/class/async/loop-interface) |   |
| [async::PagedVmo](https://fuchsia.dev/reference/cpp/class/async/paged-vmo) |   |
| [async::PagedVmoBase](https://fuchsia.dev/reference/cpp/class/async/paged-vmo-base) |   |
| [async::PagedVmoMethod](https://fuchsia.dev/reference/cpp/class/async/paged-vmo-method) |   |
| [async::Receiver](https://fuchsia.dev/reference/cpp/class/async/receiver) |   |
| [async::ReceiverBase](https://fuchsia.dev/reference/cpp/class/async/receiver-base) |   |
| [async::ReceiverMethod](https://fuchsia.dev/reference/cpp/class/async/receiver-method) |   |
| [async::SubloopToken](https://fuchsia.dev/reference/cpp/class/async/subloop-token) |   |
| [async::Task](https://fuchsia.dev/reference/cpp/class/async/task) |   |
| [async::TaskBase](https://fuchsia.dev/reference/cpp/class/async/task-base) |   |
| [async::TaskClosure](https://fuchsia.dev/reference/cpp/class/async/task-closure) |   |
| [async::TaskClosureMethod](https://fuchsia.dev/reference/cpp/class/async/task-closure-method) |   |
| [async::TaskMethod](https://fuchsia.dev/reference/cpp/class/async/task-method) |   |
| [async::TestLoop](https://fuchsia.dev/reference/cpp/class/async/test-loop) |   |
| [async::Wait](https://fuchsia.dev/reference/cpp/class/async/wait) |   |
| [async::WaitBase](https://fuchsia.dev/reference/cpp/class/async/wait-base) |   |
| [async::WaitMethod](https://fuchsia.dev/reference/cpp/class/async/wait-method) |   |
| [async::WaitOnce](https://fuchsia.dev/reference/cpp/class/async/wait-once) |   |

| ### Structs ||
|---|---|
| [async::DispatcherStub](https://fuchsia.dev/reference/cpp/struct/async/dispatcher-stub) |   |

## Functions

### NewTestLoopDispatcher

```c++
void NewTestLoopDispatcher(
  async_dispatcher_t **dispatcher,
  async_test_subloop_t **loop
)
```

### Now

```c++
zx::time Now(
  async_dispatcher_t *dispatcher
)
```

### PostDelayedTask

```c++
zx_status_t PostDelayedTask(
  async_dispatcher_t *dispatcher,
  fit::closure handler,
  zx::duration delay
)
```

### PostTask

```c++
zx_status_t PostTask(
  async_dispatcher_t *dispatcher,
  fit::closure handler
)
```

### PostTaskForTime

```c++
zx_status_t PostTaskForTime(
  async_dispatcher_t *dispatcher,
  fit::closure handler,
  zx::time deadline
)
```

### __TA_CAPABILITY

```c++
class __TA_CAPABILITY(
  "mutex"
) sequence_checker final
```