Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/semaphore/mod.ts>Semaphore

https://deno.land/x/semaphore@v1.1.0
Go to Latest
class Semaphore
import { Semaphore } from "https://deno.land/x/semaphore@v1.1.1/mod.ts";

Constructors

new
Semaphore(count: number)

Properties

private
tasks: (() => void)[]
count: number
readonly
length: number

returns current scheduled tasks length

Methods

private
schedule()
use<T>(fn: () => Promise<T>)