public interface SupplierTask<R> extends TaskInterface<SupplierTask<R>>
Orchestrator allow CompletableFuture tasks to
be created from lambda expressions that supply a return value.| Modifier and Type | Interface and Description |
|---|---|
static class |
SupplierTask.SupplierTask0<R>
An SupplierTask that takes no arguments.
|
static class |
SupplierTask.SupplierTask1<IN,R>
An SupplierTask that takes 1 argument.
|
static class |
SupplierTask.SupplierTask2<IN1,IN2,R>
An SupplierTask that takes 2 arguments.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<R> |
apply()
Creates a CompletableFuture around the lambda expression.
|
default R |
get()
Convenience method that evaluates lambda expression right away.
|
complete, complete, get, getName, light, name, runSpawnedCompletableFuture<R> apply()
default R get()
Copyright © 2021. All rights reserved.