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

x/async/mod.ts>Condition#notify

🦕 Asynchronous primitive modules loosely port from Python's asyncio for Deno.
Go to Latest
method Condition.prototype.notify
Re-export
import { Condition } from "https://deno.land/x/async@v1.1.5/mod.ts";

Wake up at most n tasks (1 by default) waiting on this condition. The method is no-op if no tasks are waiting.

The lock must be acquired before this method is called and released shortly after. If called with an unlocked lock an Error is thrown.

Parameters

optional
n = [UNSUPPORTED]