Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/poolifier/src/utils.ts>once

Fast and small web worker pool
Latest
variable once
import { once } from "https://deno.land/x/poolifier@v0.3.14/src/utils.ts";

Wraps a function so that it can only be called once.

type

<A extends any[], R, T>(fn: (...args: A) => R, context: T) => (...args: A) => R