# ready

function in `@dioramajs/diorama`

```ts
import { ready } from '@dioramajs/diorama'
```

Resolves with the app once it runs: the page's app of `start()` by default, waiting for the
call if it has not happened yet. Rejects if the app fails or is destroyed first.

    const app = await ready()
    app.effects.get(el, 'ripple')

```ts
function ready(app?: App): Promise<App>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `app?` | `App` |  |

Also exported from `@dioramajs/diorama/auto`.

Defined in [packages/diorama/src/attach.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/diorama/src/attach.ts#L22).
