Skip to main content
class Semaphore
import { Semaphore } from "https://deno.land/x/semaphore@v1.1.0/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>)