Uses of Class
com.jnape.palatable.lambda.io.IO
-
-
Uses of IO in com.jnape.palatable.lambda.adt
Method parameters in com.jnape.palatable.lambda.adt with type arguments of type IO Modifier and Type Method Description Either<L,R>
Either. peek(Fn1<? super L,? extends IO<?>> leftEffect, Fn1<? super R,? extends IO<?>> rightEffect)
Either<L,R>
Either. peek(Fn1<? super R,? extends IO<?>> effect)
Maybe<A>
Maybe. peek(Fn1<? super A,? extends IO<?>> effect)
-
Uses of IO in com.jnape.palatable.lambda.functions
Methods in com.jnape.palatable.lambda.functions that return IO Modifier and Type Method Description default IO<Unit>
Effect. apply(A a)
Invoke this function explosively with the given argument.IO<Unit>
Effect. checkedApply(A a)
Method parameters in com.jnape.palatable.lambda.functions with type arguments of type IO Modifier and Type Method Description static <A> Effect<A>
Effect. effect(Fn1<? super A,? extends IO<?>> fn)
-
Uses of IO in com.jnape.palatable.lambda.functions.builtin.fn2
Methods in com.jnape.palatable.lambda.functions.builtin.fn2 that return IO Modifier and Type Method Description static <A> IO<A>
Alter. alter(Effect<? super A> effect, A a)
static <A extends java.lang.AutoCloseable,B>
IO<B>AutoBracket. autoBracket(IO<A> io, Fn1<? super A,? extends IO<B>> bodyIO)
IO<A>
Alter. checkedApply(Fn1<? super A,? extends IO<?>> effect, A a)
IO<B>
AutoBracket. checkedApply(IO<A> io, Fn1<? super A,? extends IO<B>> bodyIO)
IO<A>
Until. checkedApply(Fn1<? super A,? extends java.lang.Boolean> pred, IO<A> io)
static <A> IO<A>
Until. until(Fn1<? super A,? extends java.lang.Boolean> pred, IO<A> io)
Methods in com.jnape.palatable.lambda.functions.builtin.fn2 that return types with arguments of type IO Modifier and Type Method Description static <A> Fn1<A,IO<A>>
Alter. alter(Effect<? super A> effect)
static <A extends java.lang.AutoCloseable,B>
Fn1<Fn1<? super A,? extends IO<B>>,IO<B>>AutoBracket. autoBracket(IO<A> io)
static <A extends java.lang.AutoCloseable,B>
Fn1<Fn1<? super A,? extends IO<B>>,IO<B>>AutoBracket. autoBracket(IO<A> io)
static <A,B,FAB extends BoundedBifunctor<A,B,? super A,? super B,?>>
Fn2<Fn1<? super B,? extends IO<?>>,FAB,FAB>Peek2. peek2(Fn1<? super A,? extends IO<?>> effectA)
Deprecated.static <A> Fn1<IO<A>,IO<A>>
Until. until(Fn1<? super A,? extends java.lang.Boolean> pred)
static <A> Fn1<IO<A>,IO<A>>
Until. until(Fn1<? super A,? extends java.lang.Boolean> pred)
Methods in com.jnape.palatable.lambda.functions.builtin.fn2 with parameters of type IO Modifier and Type Method Description static <A extends java.lang.AutoCloseable,B>
Fn1<Fn1<? super A,? extends IO<B>>,IO<B>>AutoBracket. autoBracket(IO<A> io)
static <A extends java.lang.AutoCloseable,B>
IO<B>AutoBracket. autoBracket(IO<A> io, Fn1<? super A,? extends IO<B>> bodyIO)
IO<B>
AutoBracket. checkedApply(IO<A> io, Fn1<? super A,? extends IO<B>> bodyIO)
IO<A>
Until. checkedApply(Fn1<? super A,? extends java.lang.Boolean> pred, IO<A> io)
static <A> IO<A>
Until. until(Fn1<? super A,? extends java.lang.Boolean> pred, IO<A> io)
Method parameters in com.jnape.palatable.lambda.functions.builtin.fn2 with type arguments of type IO Modifier and Type Method Description static <A extends java.lang.AutoCloseable,B>
IO<B>AutoBracket. autoBracket(IO<A> io, Fn1<? super A,? extends IO<B>> bodyIO)
IO<A>
Alter. checkedApply(Fn1<? super A,? extends IO<?>> effect, A a)
IO<B>
AutoBracket. checkedApply(IO<A> io, Fn1<? super A,? extends IO<B>> bodyIO)
FA
Peek. checkedApply(Fn1<? super A,? extends IO<?>> effect, FA fa)
Deprecated.FAB
Peek2. checkedApply(Fn1<? super A,? extends IO<?>> effectA, Fn1<? super B,? extends IO<?>> effectB, FAB fab)
Deprecated.static <A,FA extends Functor<A,?>>
Fn1<FA,FA>Peek. peek(Fn1<? super A,? extends IO<?>> effect)
Deprecated.static <A,FA extends Functor<A,?>>
FAPeek. peek(Fn1<? super A,? extends IO<?>> effect, FA fa)
Deprecated.static <A,B,FAB extends BoundedBifunctor<A,B,? super A,? super B,?>>
Fn2<Fn1<? super B,? extends IO<?>>,FAB,FAB>Peek2. peek2(Fn1<? super A,? extends IO<?>> effectA)
Deprecated.static <A,B,FAB extends BoundedBifunctor<A,B,? super A,? super B,?>>
Fn1<FAB,FAB>Peek2. peek2(Fn1<? super A,? extends IO<?>> effectA, Fn1<? super B,? extends IO<?>> effectB)
Deprecated.static <A,B,FAB extends BoundedBifunctor<A,B,? super A,? super B,?>>
FABPeek2. peek2(Fn1<? super A,? extends IO<?>> effectA, Fn1<? super B,? extends IO<?>> effectB, FAB fab)
Deprecated. -
Uses of IO in com.jnape.palatable.lambda.functions.builtin.fn3
Methods in com.jnape.palatable.lambda.functions.builtin.fn3 that return IO Modifier and Type Method Description static <A,B>
IO<B>Bracket. bracket(IO<A> io, Fn1<? super A,? extends IO<?>> cleanupIO, Fn1<? super A,? extends IO<B>> bodyIO)
IO<B>
Bracket. checkedApply(IO<A> io, Fn1<? super A,? extends IO<?>> cleanupIO, Fn1<? super A,? extends IO<B>> bodyIO)
Methods in com.jnape.palatable.lambda.functions.builtin.fn3 that return types with arguments of type IO Modifier and Type Method Description static <A,B>
Fn2<Fn1<? super A,? extends IO<?>>,Fn1<? super A,? extends IO<B>>,IO<B>>Bracket. bracket(IO<A> io)
static <A,B>
Fn2<Fn1<? super A,? extends IO<?>>,Fn1<? super A,? extends IO<B>>,IO<B>>Bracket. bracket(IO<A> io)
static <A,B>
Fn2<Fn1<? super A,? extends IO<?>>,Fn1<? super A,? extends IO<B>>,IO<B>>Bracket. bracket(IO<A> io)
static <A,B>
Fn1<Fn1<? super A,? extends IO<B>>,IO<B>>Bracket. bracket(IO<A> io, Fn1<? super A,? extends IO<?>> cleanupIO)
static <A,B>
Fn1<Fn1<? super A,? extends IO<B>>,IO<B>>Bracket. bracket(IO<A> io, Fn1<? super A,? extends IO<?>> cleanupIO)
Methods in com.jnape.palatable.lambda.functions.builtin.fn3 with parameters of type IO Modifier and Type Method Description static <A,B>
Fn2<Fn1<? super A,? extends IO<?>>,Fn1<? super A,? extends IO<B>>,IO<B>>Bracket. bracket(IO<A> io)
static <A,B>
Fn1<Fn1<? super A,? extends IO<B>>,IO<B>>Bracket. bracket(IO<A> io, Fn1<? super A,? extends IO<?>> cleanupIO)
static <A,B>
IO<B>Bracket. bracket(IO<A> io, Fn1<? super A,? extends IO<?>> cleanupIO, Fn1<? super A,? extends IO<B>> bodyIO)
IO<B>
Bracket. checkedApply(IO<A> io, Fn1<? super A,? extends IO<?>> cleanupIO, Fn1<? super A,? extends IO<B>> bodyIO)
Method parameters in com.jnape.palatable.lambda.functions.builtin.fn3 with type arguments of type IO Modifier and Type Method Description static <A,B>
Fn1<Fn1<? super A,? extends IO<B>>,IO<B>>Bracket. bracket(IO<A> io, Fn1<? super A,? extends IO<?>> cleanupIO)
static <A,B>
IO<B>Bracket. bracket(IO<A> io, Fn1<? super A,? extends IO<?>> cleanupIO, Fn1<? super A,? extends IO<B>> bodyIO)
IO<B>
Bracket. checkedApply(IO<A> io, Fn1<? super A,? extends IO<?>> cleanupIO, Fn1<? super A,? extends IO<B>> bodyIO)
-
Uses of IO in com.jnape.palatable.lambda.io
Subclasses of IO in com.jnape.palatable.lambda.io Modifier and Type Class Description private static class
IO.Compose<A>
Fields in com.jnape.palatable.lambda.io declared as IO Modifier and Type Field Description private IO<?>
IO.Compose. source
Fields in com.jnape.palatable.lambda.io with type parameters of type IO Modifier and Type Field Description private Choice2<IO<?>,Fn1<java.lang.Object,IO<?>>>
IO.Compose. composition
private Choice2<IO<?>,Fn1<java.lang.Object,IO<?>>>
IO.Compose. composition
Methods in com.jnape.palatable.lambda.io that return IO Modifier and Type Method Description IO<A>
IO. catchError(Fn1<? super java.lang.Throwable,? extends Monad<A,IO<?>>> recoveryFn)
<B> IO<B>
IO. discardL(Applicative<B,IO<?>> appB)
Sequence both thisApplicative
andappB
, discarding thisApplicative's
result and returningappB
.<B> IO<A>
IO. discardR(Applicative<B,IO<?>> appB)
Sequence both thisApplicative
andappB
, discardingappB's
result and returning thisApplicative
.IO<A>
IO. ensuring(IO<?> ensureIO)
IO<A>
IO. exceptionally(Fn1<? super java.lang.Throwable,? extends A> recoveryFn)
Deprecated.in favor of canonicalcatchError(Fn1)
static <A> IO<A>
IO. externallyManaged(Fn0<java.util.concurrent.CompletableFuture<A>> supplier)
Static factory method for creating anIO
from an externally managed source ofcompletable futures
.<B> IO<B>
IO. flatMap(Fn1<? super A,? extends Monad<B,IO<?>>> f)
Chain dependent computations that may continue or short-circuit based on previous results.<B> IO<B>
IO. fmap(Fn1<? super A,? extends B> fn)
Covariantly transmute this functor's parameter using the given mapping function.static <A> IO<A>
IO. fuse(IO<A> io)
Fuse all fork opportunities of a givenIO
such that, unless it ispinned
(or is originallyexternally managed
), no parallelism will be used when running it, regardless of what semantics are used when it is executed.static <A> IO<A>
IO. interruptible(IO<A> io)
static <A> IO<A>
IO. io(A a)
Static factory method for creating anIO
that just returnsa
when performed.static <A> IO<A>
IO. io(Fn0<? extends A> fn0)
Static factory method for coercing a lambda to anIO
.static IO<Unit>
IO. io(SideEffect sideEffect)
static <A> IO<A>
IO. memoize(IO<A> io)
static <A> IO<A>
IO. monitorSync(java.lang.Object lock, IO<A> io)
Synchronize the givenIO
using the provided lock object.static <A> IO<A>
IO. pin(IO<A> io, java.util.concurrent.Executor executor)
Pin anIO
to anExecutor
such that regardless of what future decisions are made, when it runs, it will run using whatever parallelism is supported by theExecutor
's threading model.<B> IO<B>
IO. pure(B b)
Lift the valueb
into this applicative functor.IO<Either<java.lang.Throwable,A>>
IO. safe()
IO<A>
IO. throwError(java.lang.Throwable throwable)
Throw an error value of typeE
into themonad
.static <A> IO<A>
IO. throwing(java.lang.Throwable t)
Produce anIO
that throws the givenThrowable
when executed.<B> IO<B>
IO. trampolineM(Fn1<? super A,? extends MonadRec<RecursiveResult<A,B>,IO<?>>> fn)
Given some operation yielding aRecursiveResult
inside thisMonadRec
, internally trampoline the operation until it yields atermination
instruction.<B> IO<B>
IO. zip(Applicative<Fn1<? super A,? extends B>,IO<?>> appFn)
Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Methods in com.jnape.palatable.lambda.io that return types with arguments of type IO Modifier and Type Method Description <B> Lazy<IO<B>>
IO. lazyZip(Lazy<? extends Applicative<Fn1<? super A,? extends B>,IO<?>>> lazyAppFn)
Given alazy
instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.static Pure<IO<?>>
IO. pureIO()
Methods in com.jnape.palatable.lambda.io with parameters of type IO Modifier and Type Method Description IO<A>
IO. ensuring(IO<?> ensureIO)
static <A> IO<A>
IO. fuse(IO<A> io)
Fuse all fork opportunities of a givenIO
such that, unless it ispinned
(or is originallyexternally managed
), no parallelism will be used when running it, regardless of what semantics are used when it is executed.static <A> IO<A>
IO. interruptible(IO<A> io)
static <A> IO<A>
IO. memoize(IO<A> io)
static <A> IO<A>
IO. monitorSync(java.lang.Object lock, IO<A> io)
Synchronize the givenIO
using the provided lock object.static <A> IO<A>
IO. pin(IO<A> io, java.util.concurrent.Executor executor)
Pin anIO
to anExecutor
such that regardless of what future decisions are made, when it runs, it will run using whatever parallelism is supported by theExecutor
's threading model.Method parameters in com.jnape.palatable.lambda.io with type arguments of type IO Modifier and Type Method Description IO<A>
IO. catchError(Fn1<? super java.lang.Throwable,? extends Monad<A,IO<?>>> recoveryFn)
<B> IO<B>
IO. discardL(Applicative<B,IO<?>> appB)
Sequence both thisApplicative
andappB
, discarding thisApplicative's
result and returningappB
.<B> IO<A>
IO. discardR(Applicative<B,IO<?>> appB)
Sequence both thisApplicative
andappB
, discardingappB's
result and returning thisApplicative
.<B> IO<B>
IO. flatMap(Fn1<? super A,? extends Monad<B,IO<?>>> f)
Chain dependent computations that may continue or short-circuit based on previous results.<B> Lazy<IO<B>>
IO. lazyZip(Lazy<? extends Applicative<Fn1<? super A,? extends B>,IO<?>>> lazyAppFn)
Given alazy
instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.<B> IO<B>
IO. trampolineM(Fn1<? super A,? extends MonadRec<RecursiveResult<A,B>,IO<?>>> fn)
Given some operation yielding aRecursiveResult
inside thisMonadRec
, internally trampoline the operation until it yields atermination
instruction.<B> IO<B>
IO. zip(Applicative<Fn1<? super A,? extends B>,IO<?>> appFn)
Given another instance of this applicative over a mapping function, "zip" the two instances together using whatever application semantics the current applicative supports.Constructors in com.jnape.palatable.lambda.io with parameters of type IO Constructor Description Compose(IO<?> source, Choice2<IO<?>,Fn1<java.lang.Object,IO<?>>> composition)
Constructor parameters in com.jnape.palatable.lambda.io with type arguments of type IO Constructor Description Compose(IO<?> source, Choice2<IO<?>,Fn1<java.lang.Object,IO<?>>> composition)
Compose(IO<?> source, Choice2<IO<?>,Fn1<java.lang.Object,IO<?>>> composition)
-
Uses of IO in com.jnape.palatable.lambda.monad.transformer.builtin
Methods in com.jnape.palatable.lambda.monad.transformer.builtin that return types with arguments of type IO Modifier and Type Method Description static <A> IterateT<IO<?>,A>
IterateT. fromIterator(java.util.Iterator<A> as)
-
Uses of IO in com.jnape.palatable.lambda.monoid.builtin
Methods in com.jnape.palatable.lambda.monoid.builtin that return IO Modifier and Type Method Description static <A> IO<A>
RunAll. runAll(Monoid<A> monoid, IO<A> x, IO<A> y)
Methods in com.jnape.palatable.lambda.monoid.builtin that return types with arguments of type IO Modifier and Type Method Description Monoid<IO<A>>
RunAll. checkedApply(Monoid<A> monoid)
static <A> Monoid<IO<A>>
RunAll. runAll(Monoid<A> monoid)
static <A> Fn1<IO<A>,IO<A>>
RunAll. runAll(Monoid<A> monoid, IO<A> x)
static <A> Fn1<IO<A>,IO<A>>
RunAll. runAll(Monoid<A> monoid, IO<A> x)
Methods in com.jnape.palatable.lambda.monoid.builtin with parameters of type IO Modifier and Type Method Description static <A> Fn1<IO<A>,IO<A>>
RunAll. runAll(Monoid<A> monoid, IO<A> x)
static <A> IO<A>
RunAll. runAll(Monoid<A> monoid, IO<A> x, IO<A> y)
-
Uses of IO in com.jnape.palatable.lambda.semigroup.builtin
Methods in com.jnape.palatable.lambda.semigroup.builtin that return IO Modifier and Type Method Description static <A> IO<A>
RunAll. runAll(Semigroup<A> semigroup, IO<A> ioX, IO<A> ioY)
Methods in com.jnape.palatable.lambda.semigroup.builtin that return types with arguments of type IO Modifier and Type Method Description Semigroup<IO<A>>
RunAll. checkedApply(Semigroup<A> semigroup)
static <A> Semigroup<IO<A>>
RunAll. runAll(Semigroup<A> semigroup)
static <A> Fn1<IO<A>,IO<A>>
RunAll. runAll(Semigroup<A> semigroup, IO<A> ioX)
static <A> Fn1<IO<A>,IO<A>>
RunAll. runAll(Semigroup<A> semigroup, IO<A> ioX)
Methods in com.jnape.palatable.lambda.semigroup.builtin with parameters of type IO Modifier and Type Method Description static <A> Fn1<IO<A>,IO<A>>
RunAll. runAll(Semigroup<A> semigroup, IO<A> ioX)
static <A> IO<A>
RunAll. runAll(Semigroup<A> semigroup, IO<A> ioX, IO<A> ioY)
-