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

MethodReturnsDescription
cancel()thisCancel any pending debounced function call.
run()V | voidIf there is any pending function call, clear the timer and call the function immediately.

Links to this page: