Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

all

import { all } from "https://github.gh-proxy.cn/raw.githubusercontent.com/baetheus/fun/main/promise.ts";

An alias for Promise.all

@example
import { all, wrap } from "./promise.ts";

const result = await all(wrap(1), wrap("Hello")); // [1, "Hello"]
function all<T extends AnyPromise[]>(...ua: T): Promise<[K in keyof T]: Awaited<T[K]>>;
§
all<T extends AnyPromise[]>(...ua: T): Promise<[K in keyof T]: Awaited<T[K]>>
[src]

§Type Parameters

§
T extends AnyPromise[]
[src]

§Parameters

§
...ua: T optional
[src]

§Return Type

§
Promise<[K in keyof T]: Awaited<T[K]>>
[src]