| Modifier and Type | Method and Description |
|---|---|
static <T> Promise<T> |
Promise.apply()
Creates a promise without an interrupt handler.
|
static <T> Promise<T> |
Promise.apply(InterruptHandler handler)
Creates a promise that triggers the provided handler in case it receives an interrupt.
|
protected static <T> Promise<T> |
Promise.apply(InterruptHandler h1,
InterruptHandler h2) |
static <T> Promise<T> |
Promise.apply(List<? extends InterruptHandler> handlers)
Creates a promise that triggers the provided handlers in case it receives an interrupt.
|
static <T> Promise<T> |
Promise.create(java.util.function.Function<Promise<T>,InterruptHandler> handlerBuilder)
Creates a new promise using a handler builder that it’s based on the promise under creation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Promise.proxyTo(Promise<T> p) |
void |
Future.proxyTo(Promise<T> p)
Proxies the result of this future, successful or not, to a Promise.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Promise<T> |
Promise.create(java.util.function.Function<Promise<T>,InterruptHandler> handlerBuilder)
Creates a new promise using a handler builder that it’s based on the promise under creation.
|
Copyright © 2017. All Rights Reserved.