Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "index"

Index

Type aliases

MaybePromise

MaybePromise: Promise<T> | T

Optional

Optional: object

Type declaration

Functions

immediate

  • immediate<T, K>(fn: function, ...args: K[]): Promise<T>
  • Adds the passed function to the JavaScript Message Queue to be executed by the Event Loop, wraps a Promise around that and resolves any asynchronous values. This allows to call a function asynchronously and on the Event Loop, which doesn't grow the call stack, but can be used in a synchronous manner using await.

    Type parameters

    • T

    • K

    Parameters

    • fn: function

      The function to be executed, can be async.

        • (...args: K[]): T | Promise<T>
        • Parameters

          • Rest ...args: K[]

          Returns T | Promise<T>

    • Rest ...args: K[]

      The arguments to be passed to this function.

    Returns Promise<T>

polyfillAsyncIterator

  • polyfillAsyncIterator(): void

polyfillSymbol

  • polyfillSymbol(name: string): void
  • Parameters

    • name: string

    Returns void

Generated using TypeDoc