Uses of Interface
com.github.tonivade.purefun.effect.PureIO
Packages that use PureIO
Package
Description
-
Uses of PureIO in com.github.tonivade.purefun.effect
Classes in com.github.tonivade.purefun.effect that implement PureIOModifier and TypeClassDescriptionstatic final classPureIO.AccessM<R,E, A> static final classPureIO.Async<R,E, A> static final classPureIO.Attempt<R,E, A> static final classPureIO.Delay<R,E, A> static final classPureIO.Failure<R,E, A> static final classPureIO.FlatMapped<R,E, A, F, B> static final classPureIO.Pure<R,E, A> static final classPureIO.Recover<R,E, A> static final classPureIO.Suspend<R,E, A> static final classPureIO.Throw<R,E, A> Fields in com.github.tonivade.purefun.effect declared as PureIOModifier and TypeFieldDescriptionPureIOConnection.Cancellable.cancelTokenPureIO.Recover.currentEIO.instanceRIO.instanceTask.instanceUIO.instanceURIO.instanceManaged.resourcePureIO.UNITFields in com.github.tonivade.purefun.effect with type parameters of type PureIOModifier and TypeFieldDescriptionPureIO.Async.callbackPureIO.FlatMapped.currentPureIO.AccessM.functionPureIO.Suspend.lazyPureIO.Recover.mapperPureIO.FlatMapped.nextPureIO.FlatMapped.nextErrorStackItem.recoverMethods in com.github.tonivade.purefun.effect that return PureIOModifier and TypeMethodDescriptionstatic <R,E, A> PureIO <R, E, A> static <R,E, A> PureIO <R, E, A> static <R,E, A> PureIO <R, E, A> static <R,E, A> PureIO <R, E, A> static <R,E, A extends AutoCloseable, B>
PureIO<R, E, B> PureIO.bracket(Kind<PureIO<R, E, ?>, ? extends A> acquire, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, ? extends B>> use) static <R,E, A, B>
PureIO<R, E, B> PureIO.bracket(Kind<PureIO<R, E, ?>, ? extends A> acquire, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, ? extends B>> use, Consumer1<? super A> release) static <R,E, A, B>
PureIO<R, E, B> PureIO.bracket(Kind<PureIO<R, E, ?>, ? extends A> acquire, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, ? extends B>> use, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, Unit>> release) static <R,E, A> PureIO <R, E, A> PureIO.cancellable(Function2<R, Consumer1<? super Try<? extends Either<E, ? extends A>>>, PureIO<R, ?, Unit>> consumer) static <R,E, A> PureIO <R, E, A> static <R,E> PureIO <R, E, R> PureIO.env()PureIO.exec(CheckedRunnable task) PureIO.foldM(Function1<? super E, ? extends Kind<PureIO<R, F, ?>, ? extends B>> left, Function1<? super A, ? extends Kind<PureIO<R, F, ?>, ? extends B>> right) PureIO.fork()static <R,E, A> PureIO <R, E, A> PureIO.fromEither(Producer<Either<E, ? extends A>> task) static <R,E, A> PureIO <R, E, A> PureIO.fromEither(Either<E, ? extends A> task) PureIO.fromOption(Producer<Option<? extends A>> task) PureIO.fromOption(Option<? extends A> task) static <R,E, A> PureIO <R, E, A> PureIO.fromPromise(Promise<? extends Either<E, ? extends A>> promise) static <R,E, A> PureIO <R, E, A> static <R,E, A> PureIO <R, E, A> PureIO.never()static <R,E, A, B, C>
PureIO<R, E, C> PureIO.parMap2(Kind<PureIO<R, E, ?>, ? extends A> za, Kind<PureIO<R, E, ?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) static <R,E, A, B, C>
PureIO<R, E, C> PureIO.parMap2(Executor executor, Kind<PureIO<R, E, ?>, ? extends A> za, Kind<PureIO<R, E, ?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) static <R,E, A> PureIO <R, E, A> PureIO.pure(A value) PureIO.race(Executor executor, Kind<PureIO<R, E, ?>, ? extends A> fa, Kind<PureIO<R, E, ?>, ? extends B> fb) static <R,E, A, B>
PureIO<R, E, Either<Tuple2<A, Fiber<PureIO<R, E, ?>, B>>, Tuple2<Fiber<PureIO<R, E, ?>, A>, B>>> PureIO.racePair(Executor executor, Kind<PureIO<R, E, ?>, ? extends A> fa, Kind<PureIO<R, E, ?>, ? extends B> fb) static <R,E, A> PureIO <R, E, A> PureIO.raiseError(E error) PureIO.refineOrDie(Class<X> type) PureIO.repeat()PureIO.repeat(int times) private static <R,E, A> PureIO <R, E, A> PureIO.retry()PureIO.retry(int maxRetries) private static <R,E, A> PureIO <R, E, A> PureIO.swap()static <R,E, A> PureIO <R, E, A> PureIO.throwError(Throwable error) PureIO.timed()EIO.toPureIO()static <R,E, A> PureIO <R, E, A> RIO.toPureIO()Task.toPureIO()UIO.toPureIO()URIO.toPureIO()PureIO.unit()PureIO.zipWith(Kind<PureIO<R, E, ?>, ? extends B> other, Function2<? super A, ? super B, ? extends C> mapper) Methods in com.github.tonivade.purefun.effect that return types with arguments of type PureIOModifier and TypeMethodDescriptionPureIO.accessM(R env, PureIO.AccessM<R, E, A> accessM) PureIO.fork()PureIO.liftEither(Function1<? super A, ? extends Either<E, ? extends B>> function) PureIO.liftOption(Function1<? super A, ? extends Option<? extends B>> function) static <R,E, A, B>
PureIO<R, E, Either<Tuple2<A, Fiber<PureIO<R, E, ?>, B>>, Tuple2<Fiber<PureIO<R, E, ?>, A>, B>>> PureIO.racePair(Executor executor, Kind<PureIO<R, E, ?>, ? extends A> fa, Kind<PureIO<R, E, ?>, ? extends B> fb) static <R,E, A, B>
PureIO<R, E, Either<Tuple2<A, Fiber<PureIO<R, E, ?>, B>>, Tuple2<Fiber<PureIO<R, E, ?>, A>, B>>> PureIO.racePair(Executor executor, Kind<PureIO<R, E, ?>, ? extends A> fa, Kind<PureIO<R, E, ?>, ? extends B> fb) PureIO.unwrap(R env, Kind<PureIO<R, E, ?>, A> current, CallStack<R, F, B> stack, Function1<Kind<PureIO<R, E, ?>, ? extends A>, Kind<PureIO<R, F, ?>, ? extends B>> next) Methods in com.github.tonivade.purefun.effect with parameters of type PureIOModifier and TypeMethodDescriptionprivate static <A> UIO<A> private static <R,A> URIO <R, A> static <R,E, A extends AutoCloseable>
Managed<R, E, A> static <R,E, A> Managed <R, E, A> static <R,E, A> Managed <R, E, A> private static <R,E, A> PureIO <R, E, A> private static <R,E, A> PureIO <R, E, A> voidPureIOConnection.Cancellable.setCancelToken(PureIO<?, ?, Unit> cancel) voidPureIOConnection.setCancelToken(PureIO<?, ?, Unit> cancel) voidPureIOConnection.Uncancellable.setCancelToken(PureIO<?, ?, Unit> cancel) Method parameters in com.github.tonivade.purefun.effect with type arguments of type PureIOModifier and TypeMethodDescriptionstatic <R,E, A> PureIO <R, E, A> static <R,E, A> PureIO <R, E, A> voidCallStack.add(PartialFunction1<? super Throwable, ? extends Kind<PureIO<R, E, ?>, ? extends A>> mapError) voidStackItem.add(PartialFunction1<? super Throwable, ? extends Kind<PureIO<R, E, ?>, ? extends A>> mapError) static <R,E, A extends AutoCloseable, B>
PureIO<R, E, B> PureIO.bracket(Kind<PureIO<R, E, ?>, ? extends A> acquire, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, ? extends B>> use) static <R,E, A extends AutoCloseable, B>
PureIO<R, E, B> PureIO.bracket(Kind<PureIO<R, E, ?>, ? extends A> acquire, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, ? extends B>> use) static <R,E, A, B>
PureIO<R, E, B> PureIO.bracket(Kind<PureIO<R, E, ?>, ? extends A> acquire, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, ? extends B>> use, Consumer1<? super A> release) static <R,E, A, B>
PureIO<R, E, B> PureIO.bracket(Kind<PureIO<R, E, ?>, ? extends A> acquire, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, ? extends B>> use, Consumer1<? super A> release) static <R,E, A, B>
PureIO<R, E, B> PureIO.bracket(Kind<PureIO<R, E, ?>, ? extends A> acquire, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, ? extends B>> use, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, Unit>> release) static <R,E, A, B>
PureIO<R, E, B> PureIO.bracket(Kind<PureIO<R, E, ?>, ? extends A> acquire, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, ? extends B>> use, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, Unit>> release) static <R,E, A> PureIO <R, E, A> PureIO.cancellable(Function2<R, Consumer1<? super Try<? extends Either<E, ? extends A>>>, PureIO<R, ?, Unit>> consumer) static <R,E, A> PureIO <R, E, A> PureIO.foldM(Function1<? super E, ? extends Kind<PureIO<R, F, ?>, ? extends B>> left, Function1<? super A, ? extends Kind<PureIO<R, F, ?>, ? extends B>> right) static <R,E, A extends AutoCloseable>
Managed<R, E, A> static <R,E, A> Managed <R, E, A> Managed.fromM(Function1<? super R, ? extends PureIO<R, E, ? extends A>> mapper, Consumer1<? super A> release) static <R,E, A, B, C>
PureIO<R, E, C> PureIO.parMap2(Kind<PureIO<R, E, ?>, ? extends A> za, Kind<PureIO<R, E, ?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) static <R,E, A, B, C>
PureIO<R, E, C> PureIO.parMap2(Executor executor, Kind<PureIO<R, E, ?>, ? extends A> za, Kind<PureIO<R, E, ?>, ? extends B> zb, Function2<? super A, ? super B, ? extends C> mapper) PureIO.race(Executor executor, Kind<PureIO<R, E, ?>, ? extends A> fa, Kind<PureIO<R, E, ?>, ? extends B> fb) static <R,E, A, B>
PureIO<R, E, Either<Tuple2<A, Fiber<PureIO<R, E, ?>, B>>, Tuple2<Fiber<PureIO<R, E, ?>, A>, B>>> PureIO.racePair(Executor executor, Kind<PureIO<R, E, ?>, ? extends A> fa, Kind<PureIO<R, E, ?>, ? extends B> fb) PureIO.runAsync(R env, Kind<PureIO<R, E, ?>, A> current, PureIOConnection connection) PureIO.runAsync(R env, Kind<PureIO<R, E, ?>, A> current, PureIOConnection connection, CallStack<R, E, A> stack, Promise<Either<E, A>> promise) static <R,E, A> PureIO <R, E, A> PureIO.unwrap(R env, Kind<PureIO<R, E, ?>, A> current, CallStack<R, F, B> stack, Function1<Kind<PureIO<R, E, ?>, ? extends A>, Kind<PureIO<R, F, ?>, ? extends B>> next) PureIO.unwrap(R env, Kind<PureIO<R, E, ?>, A> current, CallStack<R, F, B> stack, Function1<Kind<PureIO<R, E, ?>, ? extends A>, Kind<PureIO<R, F, ?>, ? extends B>> next) PureIO.unwrap(R env, Kind<PureIO<R, E, ?>, A> current, CallStack<R, F, B> stack, Function1<Kind<PureIO<R, E, ?>, ? extends A>, Kind<PureIO<R, F, ?>, ? extends B>> next) PureIO.zipWith(Kind<PureIO<R, E, ?>, ? extends B> other, Function2<? super A, ? super B, ? extends C> mapper) Constructors in com.github.tonivade.purefun.effect with parameters of type PureIOModifierConstructorDescription(package private)privateFlatMapped(PureIO<R, E, A> current, Function1<? super E, ? extends Kind<PureIO<R, F, ?>, ? extends B>> nextError, Function1<? super A, ? extends Kind<PureIO<R, F, ?>, ? extends B>> next) privateprivateRecover(PureIO<R, Void, A> current, PartialFunction1<? super Throwable, ? extends PureIO<R, E, ? extends A>> mapper) (package private)(package private)(package private)(package private)Constructor parameters in com.github.tonivade.purefun.effect with type arguments of type PureIOModifierConstructorDescriptionprivateprivateAsync(Function2<R, Consumer1<? super Try<? extends Either<E, ? extends A>>>, PureIO<R, ?, Unit>> callback) privateFlatMapped(PureIO<R, E, A> current, Function1<? super E, ? extends Kind<PureIO<R, F, ?>, ? extends B>> nextError, Function1<? super A, ? extends Kind<PureIO<R, F, ?>, ? extends B>> next) privateRecover(PureIO<R, Void, A> current, PartialFunction1<? super Throwable, ? extends PureIO<R, E, ? extends A>> mapper) private -
Uses of PureIO in com.github.tonivade.purefun.instances
Methods in com.github.tonivade.purefun.instances that return PureIOModifier and TypeMethodDescriptionPureIOApplicative.ap(Kind<PureIO<R, E, ?>, ? extends A> value, Kind<PureIO<R, E, ?>, ? extends Function1<? super A, ? extends B>> apply) PureIOAsync.asyncF(Function1<Consumer1<? super Try<? extends A>>, Kind<PureIO<R, Throwable, ?>, Unit>> consumer) PureIOBracket.bracket(Kind<PureIO<R, E, ?>, ? extends A> acquire, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, ? extends B>> use, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, Unit>> release) PureIOMonad.flatMap(Kind<PureIO<R, E, ?>, ? extends A> value, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, ? extends B>> map) PureIOMonadError.handleErrorWith(Kind<PureIO<R, E, ?>, A> value, Function1<? super E, ? extends Kind<PureIO<R, E, ?>, ? extends A>> handler) PureIOPure.pure(A value) default <A,B> PureIO <R, Throwable, Either<Tuple2<A, Fiber<PureIO<R, Throwable, ?>, B>>, Tuple2<Fiber<PureIO<R, Throwable, ?>, A>, B>>> PureIOConcurrent.racePair(Kind<PureIO<R, Throwable, ?>, ? extends A> fa, Kind<PureIO<R, Throwable, ?>, ? extends B> fb) PureIOMonadError.raiseError(E error) PureIOConsole.readln()Methods in com.github.tonivade.purefun.instances that return types with arguments of type PureIOModifier and TypeMethodDescriptionstatic <R,E> Applicative <PureIO<R, E, ?>> PureIOInstances.applicative()PureIOInstances.async()static <R> Concurrent<PureIO<R, Throwable, ?>> PureIOInstances.concurrent()static <R> Concurrent<PureIO<R, Throwable, ?>> PureIOInstances.concurrent(Executor executor) PureIOInstances.console()PureIOInstances.functor()PureIOInstances.monad()static <R> MonadDefer<PureIO<R, Throwable, ?>> PureIOInstances.monadDefer()static <R,E> MonadError <PureIO<R, E, ?>, E> PureIOInstances.monadError()static <R> MonadThrow<PureIO<R, Throwable, ?>> PureIOInstances.monadThrow()static <R> PureStream.Of<PureIO<R, Throwable, ?>> PureStreamInstances.ofPureIO()default <A,B> PureIO <R, Throwable, Either<Tuple2<A, Fiber<PureIO<R, Throwable, ?>, B>>, Tuple2<Fiber<PureIO<R, Throwable, ?>, A>, B>>> PureIOConcurrent.racePair(Kind<PureIO<R, Throwable, ?>, ? extends A> fa, Kind<PureIO<R, Throwable, ?>, ? extends B> fb) default <A,B> PureIO <R, Throwable, Either<Tuple2<A, Fiber<PureIO<R, Throwable, ?>, B>>, Tuple2<Fiber<PureIO<R, Throwable, ?>, A>, B>>> PureIOConcurrent.racePair(Kind<PureIO<R, Throwable, ?>, ? extends A> fa, Kind<PureIO<R, Throwable, ?>, ? extends B> fb) PureIOInstances.runtime(R env) Method parameters in com.github.tonivade.purefun.instances with type arguments of type PureIOModifier and TypeMethodDescriptionPureIOApplicative.ap(Kind<PureIO<R, E, ?>, ? extends A> value, Kind<PureIO<R, E, ?>, ? extends Function1<? super A, ? extends B>> apply) PureIOAsync.asyncF(Function1<Consumer1<? super Try<? extends A>>, Kind<PureIO<R, Throwable, ?>, Unit>> consumer) PureIOBracket.bracket(Kind<PureIO<R, E, ?>, ? extends A> acquire, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, ? extends B>> use, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, Unit>> release) PureIOBracket.bracket(Kind<PureIO<R, E, ?>, ? extends A> acquire, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, ? extends B>> use, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, Unit>> release) PureIOMonad.flatMap(Kind<PureIO<R, E, ?>, ? extends A> value, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, ? extends B>> map) PureIOMonad.flatMap(Kind<PureIO<R, E, ?>, ? extends A> value, Function1<? super A, ? extends Kind<PureIO<R, E, ?>, ? extends B>> map) PureIOMonadError.handleErrorWith(Kind<PureIO<R, E, ?>, A> value, Function1<? super E, ? extends Kind<PureIO<R, E, ?>, ? extends A>> handler) PureIOMonadError.handleErrorWith(Kind<PureIO<R, E, ?>, A> value, Function1<? super E, ? extends Kind<PureIO<R, E, ?>, ? extends A>> handler) default <T> Future<T> default <A,B> PureIO <R, Throwable, Either<Tuple2<A, Fiber<PureIO<R, Throwable, ?>, B>>, Tuple2<Fiber<PureIO<R, Throwable, ?>, A>, B>>> PureIOConcurrent.racePair(Kind<PureIO<R, Throwable, ?>, ? extends A> fa, Kind<PureIO<R, Throwable, ?>, ? extends B> fb) default <T> Sequence<T> default <T> T -
Uses of PureIO in com.github.tonivade.purefun.runtimes
Methods in com.github.tonivade.purefun.runtimes with parameters of type PureIO