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

x/rambda/files/index.d.ts>waitFor

Faster and smaller alternative to Ramda
Go to Latest
function waitFor
import { waitFor } from "https://deno.land/x/rambda@9.3.0/files/index.d.ts";

Parameters

waitForTrueCondition: () => boolean
howLong: number
optional
loops: number

Returns

() => Promise<boolean>

Parameters

waitForTrueCondition: () => Promise<boolean>
howLong: number
optional
loops: number

Returns

() => Promise<boolean>

Parameters

waitForTrueCondition: (input: T) => Promise<boolean>
howLong: number
optional
loops: number

Returns

(input: T) => Promise<boolean>

Parameters

waitForTrueCondition: (input: T) => boolean
howLong: number
optional
loops: number

Returns

(input: T) => Promise<boolean>