Package | Description |
---|---|
de.fhg.fokus.xtensions.concurrent |
This package contains classes providing extension methods for JDK classes
related to concurrent programming and some new functionality for scheduling
concurrently executed pieces of code.
The CompletableFutureExtensions class provides extension methods for the JDK
class CompletableFuture .The class AsyncCompute
provides extension methods on the JDK classes
Executor and
ScheduledExecutorService that basically dispatch work on the executors and
return CompletableFuture s being completed with the result of the
computation. |
Modifier and Type | Method and Description |
---|---|
static <R> CompletableFuture<R> |
CompletableFutureExtensions.orTimeout(CompletableFuture<R> fut,
Procedures.Procedure1<? super CompletableFutureExtensions.TimeoutConfig> config)
This method will return a future that will be completed exceptionally if the given
CompletableFuture fut
does not complete in a given timeout interval. |
Copyright © 2019. All rights reserved.