Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.
Latest
function all
import { all } from "https://deno.land/x/fun@v2.0.0/promise.ts";

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]>>