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 aCompletableFuturerepresenting the result of this eventual effect.Run the effect represented by thisIOinstance, blocking the current thread until the effect terminates.Methods inherited from class 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
-
unsafePerformAsyncIO
Description copied from class:IOReturns aCompletableFuturerepresenting the result of this eventual effect. By default, this will immediately run the effect in terms of the providedExecutor. Note that specificIOconstructions may allow this method to delegate to externally-managedCompletableFutureinstead of synthesizing their own.- Specified by:
unsafePerformAsyncIOin classIO<A>- Parameters:
executor- theExecutorto run theCompletableFuturefrom- Returns:
- the
CompletableFuturerepresenting thisIO's eventual result - See Also:
-