Package com.jnape.palatable.lambda.io
Class IO.Compose<A>
java.lang.Object
com.jnape.palatable.lambda.io.IO<A>
com.jnape.palatable.lambda.io.IO.Compose<A>
- All Implemented Interfaces:
Applicative<A,
,IO<?>> Functor<A,
,IO<?>> Monad<A,
,IO<?>> MonadError<Throwable,
,A, IO<?>> MonadRec<A,
IO<?>>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionunsafePerformAsyncIO
(Executor executor) Returns aCompletableFuture
representing the result of this eventual effect.Run the effect represented by thisIO
instance, blocking the current thread until the effect terminates.Methods inherited from class com.jnape.palatable.lambda.io.IO
catchError, discardL, discardR, ensuring, exceptionally, externallyManaged, flatMap, fmap, fuse, interruptible, io, io, io, lazyZip, memoize, monitorSync, pin, pure, pureIO, safe, throwError, throwing, trampolineM, unsafePerformAsyncIO, zip
-
Field Details
-
source
-
composition
-
-
Constructor Details
-
Compose
-
-
Method Details
-
unsafePerformIO
Description copied from class:IO
Run the effect represented by thisIO
instance, blocking the current thread until the effect terminates.- Specified by:
unsafePerformIO
in classIO<A>
- Returns:
- the result of the effect
-
unsafePerformAsyncIO
Description copied from class:IO
Returns aCompletableFuture
representing the result of this eventual effect. By default, this will immediately run the effect in terms of the providedExecutor
. Note that specificIO
constructions may allow this method to delegate to externally-managedCompletableFuture
instead of synthesizing their own.- Specified by:
unsafePerformAsyncIO
in classIO<A>
- Parameters:
executor
- theExecutor
to run theCompletableFuture
from- Returns:
- the
CompletableFuture
representing thisIO
's eventual result - See Also:
-