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

x/async/mod.ts>Condition#acquire

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

Acquire the underlying lock.

This method waits until the underlying lock is unlocked, sets it to locked and returns true.

Returns

Promise<true>