-
Notifications
You must be signed in to change notification settings - Fork 1.2k
JsGetPromiseResult
Kyle Farnung edited this page May 10, 2018
·
1 revision
Gets the result of a given Promise
object.
CHAKRA_API
JsGetPromiseResult(
_In_ JsValueRef *promise,
_Out_ JsValueRef *result);
-
promise: The
Promise
object. -
result: The result of the
Promise
. This contains the value passed to either theresolve
orreject
handler. UseJsGetPromiseState
to determine whether thePromise
was fulfilled or rejected.
The code JsNoError if the operation succeeded, a failure code otherwise. If
the promise is still pending then JsErrorPromisePending
will be returned.
This API is experimental and may have breaking change later.
Requires an active script context.
- Architecture Overview
- Building ChakraCore
- ChakraCore Code Structure
- Contributor Guidance
- Engineering Notes
- Embedding ChakraCore
- Testing ChakraCore
- Getting ChakraCore binaries
- Label Glossary
- Resources
- Roadmap / Release Notes
Want to contribute to this Wiki? Fork it and send a pull request!