Share via


JsPromiseContinuationCallback Typedef

A promise continuation callback.

Syntax

typedef void (CALLBACK *JsPromiseContinuationCallback)(  
  _In_ JsValueRef task,  
  _In_opt_ void *callbackState  
);  

Parameters

task
callbackState

Remarks

The host can specify a promise continuation callback in JsSetPromiseContinuationCallback. If a script creates a task to be run later, then the promise continuation callback will be called with the task and the task should be put in a FIFO queue, to be run when the current script is done executing.

This API is supported only in EdgeHTML mode.

Requirements

jsrt.h

See Also

Reference (JavaScript Runtime)