• Wrap an async function which uses a callback for completion in a Promise so it can be used with await.

    Export

    Returns

    Promise wrapper function

    Type Parameters

    • T

      Return type

    Parameters

    • fn: Function

      Function to execute

    • Optional scope: any = null

      Scope

    Returns Function

Generated using TypeDoc