| Modifier and Type | Method | Description |
|---|---|---|
static Promise |
Promise.all(ExecutorService executor,
Func... funcs) |
|
static Promise |
Promise.all(Func... funcs) |
Promise.all waits for all fulfillments (or the first rejection).
|
static SyncPromise |
SyncPromise.all(Func... funcs) |
Promise.all waits for all fulfillments (or the first rejection).
|
Promise |
Promise.always(Func func) |
|
SyncPromise |
SyncPromise.always(Func func) |
|
Thennable |
Thennable.always(Func func) |
|
Promise |
Promise.then(Func... funcs) |
Specify the operation to be performed after the promise processing.
|
SyncPromise |
SyncPromise.then(Func... funcs) |
Specify the operation to be performed after the promise processing.
|
Thennable |
Thennable.then(Func... funcs) |
| Constructor | Description |
|---|---|
Promise(String name,
Func func) |
|
Promise(String name,
Func func,
ExecutorService executor) |
|
Promise(Func func) |
|
Promise(Func func,
ExecutorService executor) |
|
SyncPromise(Func executor) |
Unlike javascript promises, even if executor is passed,
it will NOT be executed immediately.
|
Copyright © 2019. All rights reserved.