Skip to main content
Deno 2 is finally here 🎉️
Learn more
Extremely Popular
Go to Latest
function mock.resolvesNext
import { mock } from "https://deno.land/x/deno_slack_sdk@1.1.0/dev_deps.ts";
const { resolvesNext } = mock;

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>