> For the complete documentation index, see [llms.txt](https://docs.rootcause.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rootcause.ai/more-details/applications/application-modules/await.md).

# Await

> Continue when all or any of the inputs have arrived.

A barrier: emits once `allOf` or `anyOf` its wired inputs have arrived. Only `a` and `b` are required, so a two-way join needs no third wire.

## At a glance

|                          |                        |
| ------------------------ | ---------------------- |
| Module type              | `Await`                |
| Category                 | Primitives · Control   |
| Default tier             | `reactive`             |
| Runs on                  | `reactive`, `durable`  |
| Starts a flow            | no                     |
| Holds a body             | no                     |
| Keeps state between runs | no                     |
| Available in             | every application type |

## Parameters

### `mode`

`"allOf" | "anyOf"` · required · defaults to `"allOf"`

Wait for every wired input, or for the first one to arrive.

## Inputs

| Port | Kind     | Required | Description                                                                                                                           |
| ---- | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `on` | `event`  | no       | Implicit on every module that does not itself start a flow: wire an event here to make this module the start of what that event runs. |
| `a`  | `signal` | yes      | The first signal to wait on.                                                                                                          |
| `b`  | `signal` | yes      | The second.                                                                                                                           |
| `c`  | `signal` | no       | A third, if the barrier needs one.                                                                                                    |

## Outputs

| Port     | Kind     | Connects to | Description                     |
| -------- | -------- | ----------- | ------------------------------- |
| `output` | `signal` | `signal`    | Fires when `mode` is satisfied. |

***

[← All application modules](/more-details/applications/application-modules.md)
