Class EIO<E,A>
java.lang.Object
com.github.tonivade.purefun.effect.EIO<E,A>
- All Implemented Interfaces:
Applicable<EIO<E,,?>, A> Bindable<EIO<E,,?>, A> Effect<EIO<E,,?>, A> Mappable<EIO<E,,?>, A> EIOOf<E,,A> Kind<EIO<E,?>, A>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.github.tonivade.purefun.core.Applicable
Applicable.Map2<F extends Applicable<F,?>, A, B>, Applicable.Map3<F extends Applicable<F, ?>, A, B, C>, Applicable.Map4<F extends Applicable<F, ?>, A, B, C, D>, Applicable.Map5<F extends Applicable<F, ?>, A, B, C, D, E> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <E,A> EIO <E, A> static <E,A> EIO <E, A> <B,F> EIO <F, B> static <E,A extends AutoCloseable, B>
EIO<E, B> bracket(Kind<EIO<E, ?>, ? extends A> acquire, Function1<? super A, ? extends Kind<EIO<E, ?>, ? extends B>> use) static <E,A, B> EIO <E, B> bracket(Kind<EIO<E, ?>, ? extends A> acquire, Function1<? super A, ? extends Kind<EIO<E, ?>, ? extends B>> use, Consumer1<? super A> release) static <E,A, B> EIO <E, B> bracket(Kind<EIO<E, ?>, ? extends A> acquire, Function1<? super A, ? extends Kind<EIO<E, ?>, ? extends B>> use, Function1<? super A, ? extends Kind<EIO<E, ?>, Unit>> release) static <E,A> EIO <E, A> cancellable(Function1<Consumer1<? super Try<? extends Either<E, ? extends A>>>, EIO<E, Unit>> consumer) static <E,A> EIO <E, A> exec(CheckedRunnable task) <B> UIO<B> <B,F> EIO <F, B> foldM(Function1<? super E, ? extends Kind<EIO<F, ?>, ? extends B>> mapError, Function1<? super A, ? extends Kind<EIO<F, ?>, ? extends B>> map) fork()static <E,A> EIO <E, A> fromEither(Producer<Either<E, ? extends A>> task) static <E,A> EIO <E, A> fromEither(Either<E, ? extends A> task) fromOption(Producer<Option<? extends A>> task) fromOption(Option<? extends A> task) liftEither(Function1<? super A, ? extends Either<E, ? extends B>> function) liftOption(Function1<? super A, ? extends Option<? extends B>> function) static <E,A> EIO <E, A> never()static <E,A, B, C>
EIO<E, C> parMap2(Kind<EIO<E, ?>, ? extends A> za, Kind<EIO<E, ?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) static <E,A, B, C>
EIO<E, C> parMap2(Executor executor, Kind<EIO<E, ?>, ? extends A> za, Kind<EIO<E, ?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) static <E,A> EIO <E, A> pure(A value) static <E,A> EIO <E, A> raiseError(E error) refineOrDie(Class<X> type) repeat()repeat(int times) retry()retry(int maxRetries) runAsync()voidswap()static <E,A> EIO <E, A> throwError(Throwable error) timed()toPureIO()toUIO()unit()
-
Field Details
-
UNIT
-
instance
-
-
Constructor Details
-
EIO
-
-
Method Details
-
toPureIO
-
toUIO
-
safeRunSync
-
runAsync
-
runAsync
-
safeRunAsync
-
map
-
flatMap
-
andThen
-
ap
-
swap
-
mapError
-
flatMapError
-
bimap
-
foldM
-
fold
-
recover
-
orElse
-
zip
-
zipLeft
-
zipRight
-
zipWith
-
fork
-
timeout
-
timeout
-
repeat
-
repeat
-
repeat
-
repeat
-
retry
-
retry
-
retry
-
retry
-
timed
-
forked
-
refineOrDie
-
parMap2
-
parMap2
-
race
-
race
-
racePair
-
absorb
-
lift
-
liftOption
-
liftTry
-
liftEither
-
fromOption
-
fromOption
-
fromTry
-
fromTry
-
fromEither
-
fromEither
-
sleep
-
sleep
-
exec
-
pure
-
defer
-
task
-
never
-
async
-
cancellable
-
raiseError
-
throwError
-
traverse
-
traverse
-
bracket
-
bracket
-
bracket
-
unit
-