Module

utils/wait

@ckeditor/ckeditor5-utils/src/wait

module

Filtering

Functions

  • wait( timeout, options = { [options.signal] } ) → Promise<void>

    Returns a promise that is resolved after the specified time.

    Parameters

    timeout : number

    The time in milliseconds to wait.

    options : object
    Properties
    [ options.signal ] : AbortSignal

    A signal to abort the waiting.

    Defaults to {}

    Returns

    Promise<void>