Skip to main content
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.0.2/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.