@ryandur/sand
    Preparing search index...

    Function asyncSuccess

    • Implementation

      const successfulResult = asyncSuccess('some value').map(value => value + ', another value');
      await successfulResult.orNull(); // produces: "some value, another value"
      await successfulResult.orElse('fallback'); // produces: "some value, another value" (orElse returns the value for a success)

      Type Parameters

      • S
      • F = never

      Parameters

      • value: S

      Returns Result.Async<S, F>