Function callAsAsync

  • Calls a function that may or may not be async with guaranteed async behaviour. This is useful when invoking an externally-provided function that may not be async. It ensures that any errors originating in the provided function are incorporated into the promise as opposed to the current execution flow.

    Parameters

    • possibly_async_func: any

    Returns Promise<any>

Generated using TypeDoc