| Package | Description |
|---|---|
| nl.talsmasoftware.context.futures |
| Modifier and Type | Method and Description |
|---|---|
static ContextAwareCompletableFuture<Void> |
ContextAwareCompletableFuture.runAsync(Runnable runnable)
Runs the
runnable task in the common ForkJoinPool
within the current context and also applies that context to all successive
calls to the CompletableFuture. |
static ContextAwareCompletableFuture<Void> |
ContextAwareCompletableFuture.runAsync(Runnable runnable,
Executor executor)
Runs the
runnable task in the specified executor
within the current context and also applies that context to all successive
calls to the CompletableFuture. |
static ContextAwareCompletableFuture<Void> |
ContextAwareCompletableFuture.runAsync(Runnable runnable,
Executor executor,
ContextSnapshot snapshot)
Runs the
runnable task in the specified executor
within the specified context snapshot and also applies that context
to all successive calls to the CompletableFuture. |
static <U> ContextAwareCompletableFuture<U> |
ContextAwareCompletableFuture.supplyAsync(Supplier<U> supplier)
Runs the
supplier task in the common ForkJoinPool
within the current context and also applies that context to all successive
calls to the CompletableFuture. |
static <U> ContextAwareCompletableFuture<U> |
ContextAwareCompletableFuture.supplyAsync(Supplier<U> supplier,
Executor executor)
Runs the
supplier task in the specified executor
within the current context and also applies that context to all successive
calls to the CompletableFuture. |
static <U> ContextAwareCompletableFuture<U> |
ContextAwareCompletableFuture.supplyAsync(Supplier<U> supplier,
Executor executor,
ContextSnapshot snapshot)
Runs the
supplier task in the specified executor
within the specified context snapshot and also applies that context
to all successive calls to the CompletableFuture. |
Copyright © 2016–2018 Talsma ICT. All rights reserved.