Skip to main content
Module

x/openai/lib/Util.ts>allSettledWithThrow

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

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

type

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