Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.