Saltar al contenido principal

Documentation Index

Fetch the complete documentation index at: https://acme-c84a37e5.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Firma

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

Opciones

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

Ejemplo

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.