Skip to content

Debouncer<T, V>

Official

A debouncer wrapper for a function.

Import:

import type { Debouncer } from 'obsidian';

Signature:

export interface Debouncer<T extends unknown[], V>

Methods

Method Returns Description
cancel() this Cancel any pending debounced function call.
run() V | void If there is any pending function call, clear the timer and call the function immediately.

Links to this page: