Skip to main content
Module

x/async/rw_lock.ts

🦕 Asynchronous primitive modules loosely port from Python's asyncio for Deno.
Go to Latest
import * as async from "https://deno.land/x/async@v2.0.0/rw_lock.ts";

Classes

A reader-writer lock implementation that allows multiple concurrent reads but only one write at a time. Readers can acquire the lock simultaneously as long as there are no writers holding the lock. Writers block all other readers and writers until the write operation completes.