JsSetProjectionEnqueueCallback Function

Sets the callback to be used in order to invoke a projection completion back to the callers required thread.


STDAPI_(JsErrorCode) JsSetProjectionEnqueueCallback(
   _In_ JsProjectionEnqueueCallback projectionEnqueueCallback,
   _In_opt_ void *projectionEnqueueContext);


  • projectionEnqueueContext
    The callback that will be invoked any time a projection completion occurs on a background thread.

  • callbackState
    The application context provided to projectionEnqueueContext.

Return Value

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


Requires an active script context.

The call should be coming from a different COM apartment or from a different thread in the same MTA.

This API is supported only in Edge mode.


PInvoke is not currently supported for this API.


Header: jsrt.h

See Also

Reference (JavaScript Runtime)