Package org.teavm.jso.core
Interface JSPromise.Executor<T>
- All Superinterfaces:
org.teavm.jso.JSObject
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface for a function wrapped by a promise.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onExecute
(JSConsumer<T> resolveFunc, JSConsumer<Object> rejectFunc) Methods inherited from interface org.teavm.jso.JSObject
cast
-
Method Details
-
onExecute
- Parameters:
resolveFunc
- Call this function to resolve with success value.rejectFunc
- Call this function to reject with error value.
-