public interface SupplierTask<R> extends TaskInterface<SupplierTask<R>>
Orchestrator allow CompletableFuture tasks to
be created from lambda expressions that supply a return value. The inputs are bundled into the task,
and the result is obtained by invoking apply() on this task.| Modifier and Type | Interface and Description |
|---|---|
static class |
SupplierTask.SupplierTask0<R>
An SupplierTask that takes no arguments.
|
static class |
SupplierTask.SupplierTask1<T,R>
An SupplierTask that takes 1 argument.
|
static class |
SupplierTask.SupplierTask2<T,U,R>
An SupplierTask that takes 2 arguments.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<R> |
apply()
Creates a CompletableFuture around the lambda expression.
|
activate, complete, complete, get, getName, isActivate, isLight, isRunSpawned, light, name, runSpawnedCompletableFuture<R> apply()
Copyright © 2021. All rights reserved.