| Modifier and Type | Class | Description |
|---|---|---|
class |
Promise |
You can chain asynchronous operations and execute them sequentially
by using Promise.
|
class |
SyncPromise |
You can chain asynchronous operations and execute them sequentially
by using Promise.
|
| Modifier and Type | Method | Description |
|---|---|---|
Thennable |
Thennable.always(Func func) |
|
Thennable |
Thennable.always(Thennable promise) |
|
Thennable |
Thennable.start() |
|
Thennable |
Thennable.then(Func... funcs) |
|
Thennable |
Thennable.then(Thennable... promises) |
| Modifier and Type | Method | Description |
|---|---|---|
static Promise |
Promise.all(ExecutorService executor,
Thennable... promises) |
|
static Promise |
Promise.all(Thennable... promises) |
Promise.all waits for all fulfillments (or the first rejection).
|
static SyncPromise |
SyncPromise.all(Thennable... promises) |
Promise.all waits for all fulfillments (or the first rejection).
|
Promise |
Promise.always(Thennable promise) |
|
SyncPromise |
SyncPromise.always(Thennable promise) |
|
Thennable |
Thennable.always(Thennable promise) |
|
Promise |
Promise.then(Thennable... promises) |
|
SyncPromise |
SyncPromise.then(Thennable... promises) |
Specify the operation to be performed after the promise processing.
|
Thennable |
Thennable.then(Thennable... promises) |
Copyright © 2019. All rights reserved.