Uses of Interface
com.github.tonivade.purefun.monad.IO
Packages that use IO
Package
Description
-
Uses of IO in com.github.tonivade.purefun.instances
Methods in com.github.tonivade.purefun.instances that return IOModifier and TypeMethodDescriptiondefault <T,R> IO <R> IOApplicative.ap(Kind<IO<?>, ? extends T> value, Kind<IO<?>, ? extends Function1<? super T, ? extends R>> apply) default <A> IO<A> default <A,B> IO <B> IOBracket.bracket(Kind<IO<?>, ? extends A> acquire, Function1<? super A, ? extends Kind<IO<?>, ? extends B>> use, Function1<? super A, ? extends Kind<IO<?>, Unit>> release) default <A> IO<A> default <T,R> IO <R> IOMonad.flatMap(Kind<IO<?>, ? extends T> value, Function1<? super T, ? extends Kind<IO<?>, ? extends R>> map) default <A> IO<A> IOMonadError.handleErrorWith(Kind<IO<?>, A> value, Function1<? super Throwable, ? extends Kind<IO<?>, ? extends A>> handler) default <T> IO<T> IOPure.pure(T value) default <A> IO<A> IOMonadError.raiseError(Throwable error) IOConsole.readln()Methods in com.github.tonivade.purefun.instances that return types with arguments of type IOModifier and TypeMethodDescriptionstatic Applicative<IO<?>> IOInstances.applicative()static Applicative<IO<?>> IOInstances.applicative(Executor executor) IOInstances.async()static Concurrent<IO<?>> IOInstances.concurrent()static Concurrent<IO<?>> IOInstances.concurrent(Executor executor) IOInstances.console()IOInstances.functor()IOInstances.monad()static MonadDefer<IO<?>> IOInstances.monadDefer()static MonadError<IO<?>, Throwable> IOInstances.monadError()static MonadThrow<IO<?>> IOInstances.monadThrow()static PureStream.Of<IO<?>> PureStreamInstances.ofIO()IOInstances.runtime()IOInstances.timer()Method parameters in com.github.tonivade.purefun.instances with type arguments of type IOModifier and TypeMethodDescriptiondefault <T,R> IO <R> IOApplicative.ap(Kind<IO<?>, ? extends T> value, Kind<IO<?>, ? extends Function1<? super T, ? extends R>> apply) default <A> IO<A> default <A,B> IO <B> IOBracket.bracket(Kind<IO<?>, ? extends A> acquire, Function1<? super A, ? extends Kind<IO<?>, ? extends B>> use, Function1<? super A, ? extends Kind<IO<?>, Unit>> release) default <A,B> IO <B> IOBracket.bracket(Kind<IO<?>, ? extends A> acquire, Function1<? super A, ? extends Kind<IO<?>, ? extends B>> use, Function1<? super A, ? extends Kind<IO<?>, Unit>> release) default <A> IO<A> default <T,R> IO <R> IOMonad.flatMap(Kind<IO<?>, ? extends T> value, Function1<? super T, ? extends Kind<IO<?>, ? extends R>> map) default <T,R> IO <R> IOMonad.flatMap(Kind<IO<?>, ? extends T> value, Function1<? super T, ? extends Kind<IO<?>, ? extends R>> map) default <A> IO<A> IOMonadError.handleErrorWith(Kind<IO<?>, A> value, Function1<? super Throwable, ? extends Kind<IO<?>, ? extends A>> handler) default <A> IO<A> IOMonadError.handleErrorWith(Kind<IO<?>, A> value, Function1<? super Throwable, ? extends Kind<IO<?>, ? extends A>> handler) default <T> Future<T> default <T> Sequence<T> default <T> T -
Uses of IO in com.github.tonivade.purefun.monad
Classes in com.github.tonivade.purefun.monad that implement IOModifier and TypeClassDescriptionstatic final classIO.Async<T>static final classIO.Delay<T>static final classIO.Failure<T>static final classIO.FlatMapped<T,R> static final classIO.Pure<T>static final classIO.Recover<T>static final classIO.Suspend<T>Fields in com.github.tonivade.purefun.monad declared as IOFields in com.github.tonivade.purefun.monad with type parameters of type IOModifier and TypeFieldDescriptionIO.Async.callbackIOConnection.Cancellable.cancelTokenIO.FlatMapped.currentIO.Recover.currentIO.Suspend.lazyprivate final PartialFunction1<? super Throwable, ? extends Kind<IO<?>, ? extends T>> IO.Recover.mapperIO.FlatMapped.nextStackItem.recoverMethods in com.github.tonivade.purefun.monad that return IOModifier and TypeMethodDescriptiondefault <R> IO<R> default <R> IO<R> static <T> IO<T> IO.attempt()static <T extends AutoCloseable,R>
IO<R> IO.bracket(Kind<IO<?>, ? extends T> acquire, Function1<? super T, ? extends Kind<IO<?>, ? extends R>> use) static <T,R> IO <R> IO.bracket(Kind<IO<?>, ? extends T> acquire, Function1<? super T, ? extends Kind<IO<?>, ? extends R>> use, Consumer1<? super T> release) static <T,R> IO <R> IO.bracket(Kind<IO<?>, ? extends T> acquire, Function1<? super T, ? extends Kind<IO<?>, ? extends R>> use, Function1<? super T, ? extends Kind<IO<?>, Unit>> release) static <T> IO<T> static <T> IO<T> IO.either()IO.either(Function1<? super Throwable, ? extends L> mapError, Function1<? super T, ? extends R> mapper) IO.exec(CheckedRunnable task) default <R> IO<R> IO.fork()IO.forked()static <T> IO<T> IO.fromCompletableFuture(CompletableFuture<? extends T> promise) static <T> IO<T> IO.fromEither(Either<Throwable, ? extends T> task) static <T> IO<T> IO.fromOption(Option<? extends T> task) static <T> IO<T> IO.fromPromise(Promise<? extends T> promise) static <T> IO<T> Ref.get()Ref.getAndUpdate(Operator1<A> update) Ref.make(A value) default <R> IO<R> <B> IO<B> static <T> IO<T> IO.never()static <A,B, C> IO <C> IO.parMap2(Kind<IO<?>, ? extends A> fa, Kind<IO<?>, ? extends B> fb, Function2<? super A, ? super B, ? extends C> mapper) static <A,B, C> IO <C> IO.parMap2(Executor executor, Kind<IO<?>, ? extends A> fa, Kind<IO<?>, ? extends B> fb, Function2<? super A, ? super B, ? extends C> mapper) static <T> IO<T> IO.pure(T value) static <T> IO<T> IO.raiseError(Throwable error) IO.recoverWith(PartialFunction1<? super Throwable, ? extends Kind<IO<?>, ? extends T>> mapper) default <R> IO<R> IO.redeem(Function1<? super Throwable, ? extends R> mapError, Function1<? super T, ? extends R> mapper) default <R> IO<R> IO.redeemWith(Function1<? super Throwable, ? extends Kind<IO<?>, ? extends R>> mapError, Function1<? super T, ? extends Kind<IO<?>, ? extends R>> mapper) IO.repeat()IO.repeat(int times) private static <T> IO<T> IO.retry()IO.retry(int maxRetries) private static <T> IO<T> static <T> IO<T> static <T> IO<T> IO.timed()static <T> IO<T> IO.unit()Ref.updateAndGet(Operator1<A> update) Methods in com.github.tonivade.purefun.monad that return types with arguments of type IOModifier and TypeMethodDescriptionIO.fork()IO.liftEither(Function1<? super A, ? extends Either<Throwable, ? extends B>> function) IO.liftOption(Function1<? super A, ? extends Option<? extends B>> function) IO.unwrap(Kind<IO<?>, T> current, CallStack<U> stack, Function1<Kind<IO<?>, ? extends T>, Kind<IO<?>, ? extends U>> next) Methods in com.github.tonivade.purefun.monad with parameters of type IOMethod parameters in com.github.tonivade.purefun.monad with type arguments of type IOModifier and TypeMethodDescriptionvoidvoiddefault <R> IO<R> default <R> IO<R> static <T extends AutoCloseable,R>
IO<R> IO.bracket(Kind<IO<?>, ? extends T> acquire, Function1<? super T, ? extends Kind<IO<?>, ? extends R>> use) static <T extends AutoCloseable,R>
IO<R> IO.bracket(Kind<IO<?>, ? extends T> acquire, Function1<? super T, ? extends Kind<IO<?>, ? extends R>> use) static <T,R> IO <R> IO.bracket(Kind<IO<?>, ? extends T> acquire, Function1<? super T, ? extends Kind<IO<?>, ? extends R>> use, Consumer1<? super T> release) static <T,R> IO <R> IO.bracket(Kind<IO<?>, ? extends T> acquire, Function1<? super T, ? extends Kind<IO<?>, ? extends R>> use, Consumer1<? super T> release) static <T,R> IO <R> IO.bracket(Kind<IO<?>, ? extends T> acquire, Function1<? super T, ? extends Kind<IO<?>, ? extends R>> use, Function1<? super T, ? extends Kind<IO<?>, Unit>> release) static <T,R> IO <R> IO.bracket(Kind<IO<?>, ? extends T> acquire, Function1<? super T, ? extends Kind<IO<?>, ? extends R>> use, Function1<? super T, ? extends Kind<IO<?>, Unit>> release) static <T> IO<T> default <R> IO<R> static <A,B, C> IO <C> IO.parMap2(Kind<IO<?>, ? extends A> fa, Kind<IO<?>, ? extends B> fb, Function2<? super A, ? super B, ? extends C> mapper) static <A,B, C> IO <C> IO.parMap2(Executor executor, Kind<IO<?>, ? extends A> fa, Kind<IO<?>, ? extends B> fb, Function2<? super A, ? super B, ? extends C> mapper) IO.recoverWith(PartialFunction1<? super Throwable, ? extends Kind<IO<?>, ? extends T>> mapper) default <R> IO<R> IO.redeemWith(Function1<? super Throwable, ? extends Kind<IO<?>, ? extends R>> mapError, Function1<? super T, ? extends Kind<IO<?>, ? extends R>> mapper) private static <T> Promise<T> IO.runAsync(Kind<IO<?>, T> current, IOConnection connection) private static <T,U, V> Promise <T> voidIOConnection.Cancellable.setCancelToken(Kind<IO<?>, Unit> cancel) voidIOConnection.setCancelToken(Kind<IO<?>, Unit> cancel) voidIOConnection.Uncancellable.setCancelToken(Kind<IO<?>, Unit> cancel) static <T> IO<T> static <T> IO<T> IO.unwrap(Kind<IO<?>, T> current, CallStack<U> stack, Function1<Kind<IO<?>, ? extends T>, Kind<IO<?>, ? extends U>> next) IO.unwrap(Kind<IO<?>, T> current, CallStack<U> stack, Function1<Kind<IO<?>, ? extends T>, Kind<IO<?>, ? extends U>> next) IO.unwrap(Kind<IO<?>, T> current, CallStack<U> stack, Function1<Kind<IO<?>, ? extends T>, Kind<IO<?>, ? extends U>> next) Constructors in com.github.tonivade.purefun.monad with parameters of type IOModifierConstructorDescriptionprivateprivateRecover(IO<T> current, PartialFunction1<? super Throwable, ? extends Kind<IO<?>, ? extends T>> mapper) Constructor parameters in com.github.tonivade.purefun.monad with type arguments of type IO -
Uses of IO in com.github.tonivade.purefun.runtimes
Methods in com.github.tonivade.purefun.runtimes with parameters of type IO