Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Semaphore

import { Semaphore } from "https://gitlab.com/soapbox-pub/nostr-machina/-/raw/main/mod.ts";
class Semaphore {
constructor(count: number);
async acquire(opts: SemaphoreAcquireOpts): Promise<void>;
}

§Constructors

§
new Semaphore(count: number)
[src]

§Methods

§
acquire(opts: SemaphoreAcquireOpts): Promise<void>
[src]