-
Notifications
You must be signed in to change notification settings - Fork 1.2k
JsCreatePromise
Limin Zhu edited this page Mar 16, 2017
·
1 revision
Creates a new JavaScript Promise object.
CHAKRA_API
JsCreatePromise(
_Out_ JsValueRef *promise,
_Out_ JsValueRef *resolveFunction,
_Out_ JsValueRef *rejectFunction);
- promise: The new Promise object.
- resolveFunction: The function called to resolve the created Promise object.
- rejectFunction: The function called to reject the created Promise object.
The code JsNoError if the operation succeeded, a failure code otherwise.
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!