close
Skip to main content

@std/async@1.4.0
Built and signed on GitHub Actions

Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score100%
License
MIT
Downloads21,342/wk
Publisheda week ago (1.4.0)

Utilities for asynchronous operations, like delays, debouncing, or pooling

interface DebouncedFunction

A debounced function whose execution is delayed by a given wait time in milliseconds. If the function 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";