IAsync

types.IAsync

Hierarchy

Implemented by

delay

delay(timeout): Promise<void>

Parameters

Name Type
timeout number | IAsyncParams

Returns

Promise<void>

Defined in

src/types/async.d.ts#28


setTimeout

setTimeout<T>(callback, timeout, ...args): number

Type parameters

Name Type
T any

Parameters

Name Type
callback (...args: T[]) => void
timeout number | IAsyncParams
...args T[]

Returns

number

Defined in

src/types/async.d.ts#30


updateTimeout

updateTimeout(label, timeout): Nullable<number>

Parameters

Name Type
label string
timeout number

Returns

Nullable<number>

Defined in

src/types/async.d.ts#35


clearTimeout

clearTimeout(timer): void

Parameters

Name Type
timer number

Returns

void

Defined in

src/types/async.d.ts#37

clearTimeout(label): void

Parameters

Name Type
label string

Returns

void

Defined in

src/types/async.d.ts#38

clearTimeout(timerOrLabel): void

Parameters

Name Type
timerOrLabel string | number

Returns

void

Defined in

src/types/async.d.ts#39


clear

clear(): void

Returns

void

Defined in

src/types/async.d.ts#41


promise

promise<T>(executor): RejectablePromise<T>

Type parameters

Name
T

Parameters

Name Type
executor (resolve: (value: T | PromiseLike<T>) => void, reject: (reason?: any) => void) => void

Returns

RejectablePromise<T>

Defined in

src/types/async.d.ts#43


promiseState

promiseState(p): Promise<"pending" | "fulfilled" | "rejected">

Parameters

Name Type
p Promise<any>

Returns

Promise<"pending" | "fulfilled" | "rejected">

Defined in

src/types/async.d.ts#50


debounce

debounce(fn, timeout, firstCallImmediately?): CallbackFunction<any>

Parameters

Name Type
fn CallbackFunction<any>
timeout IAsyncParams | ITimeout
firstCallImmediately? boolean

Returns

CallbackFunction<any>

Defined in

src/types/async.d.ts#54


microDebounce

microDebounce<T>(fn, firstCallImmediately?): T

Type parameters

Name Type
T extends CallbackFunction<any>

Parameters

Name Type
fn T
firstCallImmediately? boolean

Returns

T

Defined in

src/types/async.d.ts#60


throttle

throttle(fn, timeout, firstCallImmediately?): CallbackFunction<any>

Parameters

Name Type
fn CallbackFunction<any>
timeout IAsyncParams | ITimeout
firstCallImmediately? boolean

Returns

CallbackFunction<any>

Defined in

src/types/async.d.ts#65


requestIdleCallback

requestIdleCallback(fn, options?): number

Parameters

Name Type
fn IdleRequestCallback
options? Object
options.timeout number

Returns

number

Defined in

src/types/async.d.ts#71


requestIdlePromise

requestIdlePromise(options?): RejectablePromise<number>

Parameters

Name Type
options? Object
options.timeout number

Returns

RejectablePromise<number>

Defined in

src/types/async.d.ts#75


cancelIdleCallback

cancelIdleCallback(request): void

Parameters

Name Type
request number

Returns

void

Defined in

src/types/async.d.ts#78


requestAnimationFrame

requestAnimationFrame(callback): number

Smart wrapper for requestAnimationFrame

Parameters

Name Type
callback FrameRequestCallback

Returns

number

Defined in

src/types/async.d.ts#83


cancelAnimationFrame

cancelAnimationFrame(request): void

Smart wrapper for cancelAnimationFrame

Parameters

Name Type
request number

Returns

void

Defined in

src/types/async.d.ts#88


destruct

destruct(jodit?): any

Parameters

Name Type
jodit? IViewBased<IViewOptions>

Returns

any

Inherited from

IDestructible.destruct

Defined in

jodit/src/types/types.d.ts:32