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>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<A>unsafePerformAsyncIO(java.util.concurrent.Executor executor)Returns aCompletableFuturerepresenting the result of this eventual effect.AunsafePerformIO()Run the effect represented by thisIOinstance, 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
-
-
-
-
Method Detail
-
unsafePerformIO
public A unsafePerformIO()
Description copied from class:IORun the effect represented by thisIOinstance, blocking the current thread until the effect terminates.- Specified by:
unsafePerformIOin classIO<A>- Returns:
- the result of the effect
-
unsafePerformAsyncIO
public java.util.concurrent.CompletableFuture<A> unsafePerformAsyncIO(java.util.concurrent.Executor executor)
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:
IO.unsafePerformAsyncIO()
-
-