IAsync
types.IAsync
Hierarchy
-
↳
IAsync
Implemented by
delay
delay(timeout
): Promise
<void
>
Parameters
Name | Type |
---|---|
timeout |
number | IAsyncParams |
Returns
Promise
<void
>
Defined in
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
updateTimeout
updateTimeout(label
, timeout
): Nullable
<number
>
Parameters
Name | Type |
---|---|
label |
string |
timeout |
number |
Returns
Nullable
<number
>
Defined in
clearTimeout
clearTimeout(timer
): void
Parameters
Name | Type |
---|---|
timer |
number |
Returns
void
Defined in
clearTimeout(label
): void
Parameters
Name | Type |
---|---|
label |
string |
Returns
void
Defined in
clearTimeout(timerOrLabel
): void
Parameters
Name | Type |
---|---|
timerOrLabel |
string | number |
Returns
void
Defined in
clear
clear(): void
Returns
void
Defined in
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
Defined in
promiseState
promiseState(p
): Promise
<"pending"
| "fulfilled"
| "rejected"
>
Parameters
Name | Type |
---|---|
p |
Promise <any > |
Returns
Promise
<"pending"
| "fulfilled"
| "rejected"
>
Defined in
debounce
debounce(fn
, timeout
, firstCallImmediately?
): CallbackFunction
<any
>
Parameters
Name | Type |
---|---|
fn |
CallbackFunction <any > |
timeout |
IAsyncParams | ITimeout |
firstCallImmediately? |
boolean |
Returns
CallbackFunction
<any
>
Defined in
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
throttle
throttle(fn
, timeout
, firstCallImmediately?
): CallbackFunction
<any
>
Parameters
Name | Type |
---|---|
fn |
CallbackFunction <any > |
timeout |
IAsyncParams | ITimeout |
firstCallImmediately? |
boolean |
Returns
CallbackFunction
<any
>
Defined in
requestIdleCallback
requestIdleCallback(fn
, options?
): number
Parameters
Name | Type |
---|---|
fn |
IdleRequestCallback |
options? |
Object |
options.timeout |
number |
Returns
number
Defined in
requestIdlePromise
requestIdlePromise(options?
): RejectablePromise
<number
>
Parameters
Name | Type |
---|---|
options? |
Object |
options.timeout |
number |
Returns
RejectablePromise
<number
>
Defined in
cancelIdleCallback
cancelIdleCallback(request
): void
Parameters
Name | Type |
---|---|
request |
number |
Returns
void
Defined in
requestAnimationFrame
requestAnimationFrame(callback
): number
Smart wrapper for requestAnimationFrame
Parameters
Name | Type |
---|---|
callback |
FrameRequestCallback |
Returns
number
Defined in
cancelAnimationFrame
cancelAnimationFrame(request
): void
Smart wrapper for cancelAnimationFrame
Parameters
Name | Type |
---|---|
request |
number |
Returns
void
Defined in
destruct
destruct(jodit?
): any
Parameters
Name | Type |
---|---|
jodit? |
IViewBased <IViewOptions > |
Returns
any
Inherited from
Defined in
jodit/src/types/types.d.ts:32