> ## Documentation Index
> Fetch the complete documentation index at: https://acme-c84a37e5.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# allOrThrow

> Ejecuta múltiples tareas y lanza al primer fallo

## Firma

`allOrThrow<T>(tasks, options?): Promise<T[]>`

## Opciones

* Hereda todas las opciones de `run`
* `concurrency`: límite simultáneo

## Ejemplo

```typescript theme={null}
import { allOrThrow } from "tryo";

const data = await allOrThrow<string>(
  [
    () => fetch("/a").then((r) => r.text()),
    () => fetch("/b").then((r) => r.text()),
  ],
  { concurrency: 2 }
);
```

Si una tarea falla, se lanza el error normalizado.
