Effect<E, L, R>.functionFail constructor

Effect<E, L, R>.functionFail(
  1. FutureOr<Cause<L>> f()
)

{@category constructors}

Implementation

factory Effect.functionFail(FutureOr<Cause<L>> Function() f) => Effect.from(
      (_) => f().then(Left.new),
    );