Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pastedeno/dev_deps.ts>resolvesNext

Universal Pastebin client for Deno/Node
Latest
function resolvesNext
import { resolvesNext } from "https://deno.land/x/pastedeno@0.6.2/dev_deps.ts";

Creates a function that resolves the awaited iterable values. Any awaited iterable values that are errors will be thrown.

Type Parameters

Return
optional
Self = any
optional
Args extends unknown[] = any[]

Parameters

iterable: Iterable<Return | Error | Promise<Return | Error>> | AsyncIterable<Return | Error | Promise<Return | Error>>

Returns

(this: Self, ...args: Args) => Promise<Return>