Class JsPromise

java.lang.Object
org.vaadin.firitin.util.JsPromise

public class JsPromise extends Object
Helper methods to consume asynchronous JS APIs without extra JS trickery. The given script bodies are executed on the UI element and wrapped into a promise, either using Promise with resolve and reject exposed to your script body or using an anonymous async function.