public abstract static class Fn.Promise
extends java.lang.Object
Fn.Promise.compute() method
is invoked and the result is remebered.| Modifier | Constructor and Description |
|---|---|
protected |
Promise(Fn.Presenter p)
Constructor for subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.Object |
compute()
Implement in subclasses to perform the "promised" Java operation.
|
java.lang.Object |
schedule()
Schedules the promise invocation and returns JavaScript representation
of the promise.
|
protected Promise(Fn.Presenter p)
p - the presenter to resolve promise withpublic final java.lang.Object schedule()
Promise objectprotected abstract java.lang.Object compute()
throws java.lang.Throwable
scheduled promise.java.lang.Throwable - the exception to resolve the promise withCopyright © 2025 The Apache Software Foundation. All rights reserved.