Function tryAwait

  • Tries to await a promise and resolves with :ok(value) if the promise resolved or :err(error) if the promise rejected.

    Parameters

    • promise: any

    Returns Promise<any>

Generated using TypeDoc