Package | Description |
---|---|
com.jnape.palatable.lambda.adt | |
com.jnape.palatable.lambda.functions | |
com.jnape.palatable.lambda.functions.specialized | |
com.jnape.palatable.lambda.io |
Modifier and Type | Method and Description |
---|---|
Try<A> |
Try.ensuring(SideEffect sideEffect)
Run the provided runnable regardless of whether this is a success or a failure (the
Try analog to
finally . |
static Either<Throwable,Unit> |
Either.trying(SideEffect sideEffect)
Attempt to execute the
SideEffect , returning Unit in a right value. |
static Try<Unit> |
Try.trying(SideEffect sideEffect)
|
static <L> Either<L,Unit> |
Either.trying(SideEffect sideEffect,
Fn1<? super Throwable,? extends L> leftFn)
Attempt to execute the
SideEffect , returning Unit in a right value. |
Modifier and Type | Method and Description |
---|---|
static <A> Effect<A> |
Effect.effect(SideEffect sideEffect)
Create an
Effect from a SideEffect ; |
Modifier and Type | Field and Description |
---|---|
static SideEffect |
SideEffect.NOOP
A no-op
SideEffect |
Modifier and Type | Method and Description |
---|---|
static SideEffect |
SideEffect.fromRunnable(Runnable runnable)
Create a
SideEffect from a java Runnable . |
static SideEffect |
SideEffect.sideEffect(SideEffect sideEffect)
Static factory method to aid in inference.
|
Modifier and Type | Method and Description |
---|---|
static SideEffect |
SideEffect.sideEffect(SideEffect sideEffect)
Static factory method to aid in inference.
|
Modifier and Type | Method and Description |
---|---|
static IO<Unit> |
IO.io(SideEffect sideEffect)
|