public final class PromiseCompanion extends Object
Promise
. import static javascalautils.PromiseCompanion.Promise; Promise<String> promise = Promise();
Modifier and Type | Method and Description |
---|---|
static <T> Promise<T> |
Promise()
Creates an instance of Promise.
|
public static <T> Promise<T> Promise()
import static javascalautils.concurrent.FutureCompanion.Promise; Promise<String> promise = Promise();
T
- The type the Promise is expected to deliverCopyright © 2015, Peter Nerg Apache License v2.0