Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/async/mutex.ts>Mutex#acquire

🦕 Asynchronous primitive modules for Deno.
Latest
method Mutex.prototype.acquire
import { Mutex } from "https://deno.land/x/async@v2.1.0/mutex.ts";

Acquire the mutex, waiting if necessary for it to become available.

Returns

Promise<void>

A Promise that resolves when the mutex is acquired.