JsSetPromiseContinuationCallback Function

Sets a promise continuation callback function that is called by the context when a task needs to be queued for future execution.


STDAPI_(JsErrorCode) JsSetPromiseContinuationCallback(
   _In_ JsPromiseContinuationCallback promiseContinuationCallback,
   _In_opt_ void *callbackState


  • promiseContinuationCallback
    The callback function being set.

  • callbackState
    User provided state that will be passed back to the callback.

Return Value

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


Requires an active script context.

This API is supported only in Edge mode.


Header: jsrt.h

See Also

Reference (JavaScript Runtime)