Skip to main content
Module

x/fun/promise.ts>all

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
function all
import { all } from "https://deno.land/x/fun@v2.0.0-alpha.6/promise.ts";

An alias for Promise.all

Examples

Example 1

import { all, of } from "./promise.ts";

const result = await all(of(1), of("Hello")); // [1, "Hello"]

Returns

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