Skip to content

JsGetPromiseState

Kyle Farnung edited this page May 10, 2018 · 1 revision

Gets the state of a given Promise object.

Syntax

CHAKRA_API
    JsGetPromiseState(
        _In_ JsValueRef *promise,
        _Out_ JsPromiseState *state);

Parameters

  • promise: The Promise object.
  • state: The current state of the Promise object.

Return Value

The code JsNoError if the operation succeeded, a failure code otherwise.

Remarks

This API is experimental and may have breaking change later.

Requires an active script context.

Clone this wiki locally