Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

JsThreadServiceCallback

Limin Zhu edited this page Oct 9, 2015 · 1 revision

A thread service callback.

Syntax

typedef bool (CALLBACK *JsThreadServiceCallback)(_In_ JsBackgroundWorkItemCallback callback, _In_opt_ void *callbackState);

Parameters

  • callback: The callback for the background work item.
  • callbackState: The data argument to be passed to the callback.

Remarks

The host can specify a background thread service when calling JsCreateRuntime. If specified, then background work items will be passed to the host using this callback. The host is expected to either begin executing the background work item immediately and return true or return false and the runtime will handle the work item in-thread.

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.