The Candid Startup
    Preparing search index...
    • Create an instance of ResultAsync containing an Ok variant of Result

      Equivalent to new ResultAsync(Promise.resolve(new Ok(value)))

      Type Parameters

      • T

        The type of the value contained in the ResultAsync for the success case

      • E = never

        The type of the error contained in the ResultAsync for the failure case

      Parameters

      • value: T

        The value to wrap in a Result.Ok.

      Returns ResultAsync<T, E>

    • Create an instance of ResultAsync containing an Ok variant of Result

      Equivalent to new ResultAsync(Promise.resolve(new Ok(value)))

      Type Parameters

      • _T extends void = void
      • E = never

        The type of the error contained in the ResultAsync for the failure case

      Parameters

      • value: void

        The value to wrap in a Result.Ok.

      Returns ResultAsync<void, E>