Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/openai/lib/Util.ts>allSettledWithThrow

Deno build of the official Typescript library for the OpenAI API.
Extremely Popular
Latest
variable allSettledWithThrow
import { allSettledWithThrow } from "https://deno.land/x/openai@v4.69.0/lib/Util.ts";

Like Promise.allSettled() but throws an error if any promises are rejected.

type

<R>(promises: Promise<R>[]) => Promise<R[]>