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

x/async/event.ts>Event#wait

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

Wait until the event is set.

If the event is set, return true immediately. Otherwise block until another task calls set().

Returns

Promise<true>