Uses of Interface
com.github.tonivade.purefun.type.Try
Packages that use Try
Package
Description
-
Uses of Try in com.github.tonivade.purefun.concurrent
Fields in com.github.tonivade.purefun.concurrent with type parameters of type TryModifier and TypeFieldDescriptionPromiseImpl.consumersprivate final AtomicReference<Try<? extends T>> PromiseImpl.referenceMethods in com.github.tonivade.purefun.concurrent that return TryModifier and TypeMethodDescriptionFuture.await()FutureImpl.await()Promise.await()PromiseImpl.await()PromiseImpl.safeGet()Methods in com.github.tonivade.purefun.concurrent that return types with arguments of type TryModifier and TypeMethodDescriptionMethods in com.github.tonivade.purefun.concurrent with parameters of type TryModifier and TypeMethodDescriptionprivate voidprivate void(package private) static <T> Future<T> booleanPromise.tryComplete(Try<? extends T> value) booleanPromiseImpl.tryComplete(Try<? extends T> value) Method parameters in com.github.tonivade.purefun.concurrent with type arguments of type TryModifier and TypeMethodDescriptionstatic <T> Future<T> static <T> Future<T> (package private) static <T> Future<T> private <R> Future<R> Future.onComplete(Consumer1<? super Try<? extends T>> callback) FutureImpl.onComplete(Consumer1<? super Try<? extends T>> consumer) Promise.onComplete(Consumer1<? super Try<? extends T>> consumer) PromiseImpl.onComplete(Consumer1<? super Try<? extends T>> consumer) private void(package private) static <T> Future<T> private <R> Future<R> private <R> Future<R> -
Uses of Try in com.github.tonivade.purefun.core
Methods in com.github.tonivade.purefun.core that return types with arguments of type Try -
Uses of Try in com.github.tonivade.purefun.effect
Fields in com.github.tonivade.purefun.effect with type parameters of type TryMethods in com.github.tonivade.purefun.effect that return TryModifier and TypeMethodDescriptionRIO.safeRunSync(R env) Task.safeRunSync()UIO.safeRunSync()URIO.safeRunSync(R env) Methods in com.github.tonivade.purefun.effect with parameters of type TryModifier and TypeMethodDescriptionstatic <R,A> RIO <R, A> static <A> Task<A> static <T> UIO<T> static <R,T> URIO <R, T> Method parameters in com.github.tonivade.purefun.effect with type arguments of type TryModifier and TypeMethodDescriptionstatic <E,A> EIO <E, A> static <R,E, A> PureIO <R, E, A> static <R,A> RIO <R, A> static <A> Task<A> static <A> UIO<A> static <R,A> URIO <R, A> static <A> Task<A> static <E,A> EIO <E, A> EIO.cancellable(Function1<Consumer1<? super Try<? extends Either<E, ? extends A>>>, EIO<E, Unit>> consumer) 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,A> RIO <R, A> static <A> UIO<A> static <R,A> URIO <R, A> static <R,A> RIO <R, A> static <A> Task<A> default voiddefault voidPureIO.provideAsync(R env, Executor executor, Consumer1<? super Try<? extends Either<E, A>>> callback) voidvoidRIO.safeRunAsync(R env, Consumer1<? super Try<? extends A>> callback) voidTask.safeRunAsync(Consumer1<? super Try<? extends A>> callback) voidUIO.safeRunAsync(Consumer1<? super Try<? extends A>> callback) voidUIO.safeRunAsync(Executor executor, Consumer1<? super Try<? extends A>> callback) voidURIO.safeRunAsync(R env, Consumer1<? super Try<? extends A>> callback) Constructor parameters in com.github.tonivade.purefun.effect with type arguments of type Try -
Uses of Try in com.github.tonivade.purefun.instances
Methods in com.github.tonivade.purefun.instances that return types with arguments of type TryModifier and TypeMethodDescriptionTryApplicative.ap(Kind<Try<?>, ? extends T> value, Kind<Try<?>, ? extends Function1<? super T, ? extends R>> apply) static Applicative<Try<?>> TryInstances.applicative()TryMonad.flatMap(Kind<Try<?>, ? extends T> value, Function1<? super T, ? extends Kind<Try<?>, ? extends R>> map) TryInstances.foldable()TryInstances.functor()TryMonadError.handleErrorWith(Kind<Try<?>, A> value, Function1<? super Throwable, ? extends Kind<Try<?>, ? extends A>> handler) private <T,R> Trampoline <Kind<Try<?>, R>> TryInstances.monad()static MonadError<Try<?>, Throwable> TryInstances.monadError()static MonadThrow<Try<?>> TryInstances.monadThrow()TryPure.pure(T value) TryMonadError.raiseError(Throwable error) TryInstances.traverse()TryTraverse.traverse(Applicative<G> applicative, Kind<Try<?>, T> value, Function1<? super T, ? extends Kind<G, ? extends R>> mapper) Method parameters in com.github.tonivade.purefun.instances with type arguments of type TryModifier and TypeMethodDescriptionTryApplicative.ap(Kind<Try<?>, ? extends T> value, Kind<Try<?>, ? extends Function1<? super T, ? extends R>> apply) EIOAsync.asyncF(Function1<Consumer1<? super Try<? extends A>>, Kind<EIO<Throwable, ?>, Unit>> consumer) default <A> IO<A> PureIOAsync.asyncF(Function1<Consumer1<? super Try<? extends A>>, Kind<PureIO<R, Throwable, ?>, Unit>> consumer) default <A> Task<A> default <A> UIO<A> TryMonad.flatMap(Kind<Try<?>, ? extends T> value, Function1<? super T, ? extends Kind<Try<?>, ? extends R>> map) TryMonad.flatMap(Kind<Try<?>, ? extends T> value, Function1<? super T, ? extends Kind<Try<?>, ? extends R>> map) default <A,B> B TryFoldable.foldLeft(Kind<Try<?>, ? extends A> value, B initial, Function2<? super B, ? super A, ? extends B> mapper) default <A,B> Eval <B> TryFoldable.foldRight(Kind<Try<?>, ? extends A> value, Eval<? extends B> initial, Function2<? super A, ? super Eval<? extends B>, ? extends Eval<? extends B>> mapper) TryMonadError.handleErrorWith(Kind<Try<?>, A> value, Function1<? super Throwable, ? extends Kind<Try<?>, ? extends A>> handler) TryMonadError.handleErrorWith(Kind<Try<?>, A> value, Function1<? super Throwable, ? extends Kind<Try<?>, ? extends A>> handler) private <T,R> Trampoline <Kind<Try<?>, R>> TryTraverse.traverse(Applicative<G> applicative, Kind<Try<?>, T> value, Function1<? super T, ? extends Kind<G, ? extends R>> mapper) -
Uses of Try in com.github.tonivade.purefun.monad
Fields in com.github.tonivade.purefun.monad with type parameters of type TryMethods in com.github.tonivade.purefun.monad that return TryMethods in com.github.tonivade.purefun.monad that return types with arguments of type TryMethods in com.github.tonivade.purefun.monad with parameters of type TryMethod parameters in com.github.tonivade.purefun.monad with type arguments of type TryModifier and TypeMethodDescriptionstatic <T> IO<T> static <T> IO<T> default voidIO.safeRunAsync(Consumer1<? super Try<? extends T>> callback) default voidIO.safeRunAsync(Executor executor, Consumer1<? super Try<? extends T>> callback) Constructor parameters in com.github.tonivade.purefun.monad with type arguments of type Try -
Uses of Try in com.github.tonivade.purefun.runtimes
Methods in com.github.tonivade.purefun.runtimes that return TryMethods in com.github.tonivade.purefun.runtimes that return types with arguments of type Try -
Uses of Try in com.github.tonivade.purefun.transformer
Methods in com.github.tonivade.purefun.transformer with parameters of type Try -
Uses of Try in com.github.tonivade.purefun.type
Classes in com.github.tonivade.purefun.type that implement TryModifier and TypeClassDescriptionstatic final recordTry.Failure<T>static final recordTry.Success<T>Methods in com.github.tonivade.purefun.type that return TryModifier and TypeMethodDescriptiondefault <R> Try<R> static <T> Try<T> Try.failure()static <T> Try<T> static <T> Try<T> Try.filterOrElse(Matcher1<? super T> matcher, Producer<? extends Kind<Try<?>, ? extends T>> producer) default <R> Try<R> static <R> Try<R> static <R> Try<R> Try.fromEither(Either<? extends Throwable, ? extends R> value) static <T> Try<T> Try.illegalArgumentException()static <T> Try<T> Try.illegalArgumentException(String cause) static <T> Try<T> Try.illegalStateException()static <T> Try<T> Try.illegalStateException(String cause) default <R> Try<R> static <A,B, Z> Try <Z> static <T> Try<T> Try.noSuchElementException()static <T> Try<T> Try.noSuchElementException(String cause) static <T> Try<T> Try.recoverWith(Class<X> type, Function1<? super X, ? extends T> mapper) static <T> Try<T> Try.success(T value) Option.toTry()static <T> Try<T> static <T> Try<T> static <T> Try<T> Try.unsupportedOperationException(String cause) Methods in com.github.tonivade.purefun.type with parameters of type TryMethod parameters in com.github.tonivade.purefun.type with type arguments of type Try -
Uses of Try in com.github.tonivade.purefun.typeclasses
Methods in com.github.tonivade.purefun.typeclasses with parameters of type TryModifier and TypeMethodDescriptionMethod parameters in com.github.tonivade.purefun.typeclasses with type arguments of type TryModifier and TypeMethodDescription