# utils/delay

module

<a id="interfaces">

## Interfaces

<a id="interface-DelayedFunc">

### `DelayedFunc`

<a id="functions">

## Functions

<a id="function-delay">

### `delay( func, wait ) → DelayedFunc<T>`

Returns a function wrapper that will trigger a function after a specified wait time. The timeout can be canceled by calling the cancel function on the returned wrapped function.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-utils/src/delay.ts#L17)

#### Type parameters

* `T: extends ( args: Array<any> ) => any`

#### Parameters

* `func: T`

  The function to wrap.

* `wait: number`

  The timeout in ms.

#### Returns

* `DelayedFunc<T>`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
