Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/async/condition.ts>Condition#wait_for

🦕 Asynchronous primitive modules loosely port from Python's asyncio for Deno.
Go to Latest
method Condition.prototype.wait_for
import { Condition } from "https://deno.land/x/async@v1.1.2/condition.ts";

Wait until a predicate becomes true.

The predicate must be a callable which result is a boolean value.

Parameters

predicate: () => boolean

Returns

Promise<void>