Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 1.22 KB

IReactDispatcher-api-windows.md

File metadata and controls

38 lines (22 loc) · 1.22 KB
id title
IReactDispatcher
IReactDispatcher

Kind: interface

IReactDispatcher provides the core threading/task management interface for ensuring that the code execution happens in the right order on the right thread. One primary dispatcher that applications may require is the IReactContext.UIDispatcher which provides native modules access to the UI thread associated with this React instance. Another one is the IReactContext.JSDispatcher which allows apps to post tasks to the JS engine thread.

Properties

HasThreadAccess

readonly bool HasThreadAccess

true if the dispatcher uses current thread.

Methods

Post

void Post(ReactDispatcherCallback callback)

Posts a task to the dispatcher. The callback will be called asynchronously on the thread/queue associated with this dispatcher.

Referenced by