Skip to main content
Module

x/async/rw_lock.ts

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