Class Promise<T>

java.lang.Object
net.datenwerke.gwt.client.Promise<T>
Type Parameters:
T -
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

public class Promise<T> extends Object
JS Promise for chaining async calls.

Usage: Promise.create((resolve, reject) -> { resolve.onInvoke(true); }).then(value -> { ConsoleLogger.info(value); }).then(() -> { throw new RuntimeException("Error"); }).catch_((err) -> { ConsoleLogger.info(err); }).finally_(() -> { ConsoleLogger.info("finally"); });