Skip to main content

@std/async@0.215.0

latest
Works with
It is unknown whether this package works with Browsers, Deno, Node.js, Cloudflare Workers, Bun
It is unknown whether this package works with Browsers
It is unknown whether this package works with Deno
It is unknown whether this package works with Node.js
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Bun
JSR Score70%
Published2 years ago (0.215.0)
interface DebouncedFunction

A debounced function that will be delayed by a given wait time in milliseconds. If the method is called again before the timeout expires, the previous call will be aborted.

Type Parameters

T extends Array<unknown>

Call Signatures

(...args: T): void

Properties

Returns a boolean whether a debounce call is pending or not.

Methods

Clears the debounce timeout and omits calling the debounced function.

Clears the debounce timeout and calls the debounced function immediately.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@std/async

Import symbol

import { type DebouncedFunction } from "@std/async";
or

Import directly with a jsr specifier

import { type DebouncedFunction } from "jsr:@std/async";