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

x/async/rw_lock.ts

🦕 Asynchronous primitive modules for Deno.
Go to Latest
import * as async from "https://deno.land/x/async@v2.0.2/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.