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

x/rimbu/channel/mod.ts>Mutex.Constructors

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface Mutex.Constructors
import { type Mutex } from "https://deno.land/x/rimbu@1.1.0/channel/mod.ts";
const { Constructors } = Mutex;

Defines the static Mutex API.

Methods

create(): Mutex

Returns a new Mutex instance that can be used to enforce single access to a shared resource.