Skip to main content
Module

x/fun/mod.ts>promise.all

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

An alias for Promise.all

Examples

Example 1

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

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

Returns

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