Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1.31 KB

dispatcherqueuecontroller_createondedicatedthread_660689653.md

File metadata and controls

29 lines (18 loc) · 1.31 KB
-api-id -api-type
M:Microsoft.UI.Dispatching.DispatcherQueueController.CreateOnDedicatedThread
winrt method

Microsoft.UI.Dispatching.DispatcherQueueController.CreateOnDedicatedThread

-description

Creates a DispatcherQueue that you can use to run tasks on a dedicated thread.

-returns

The DispatcherQueue that you can use to run tasks on a dedicated thread.

-remarks

This method creates a thread, and associates a DispatcherQueue with that thread. A DispatcherQueue is created, and associated with the current thread. You can access the created DispatcherQueue via DispatcherQueueController.DispatcherQueue.

The created DispatcherQueue continues running on its dedicated thread until explicitly shut down. To avoid thread and memory leaks, when you're finished with the DispatcherQueue call DispatcherQueueController.ShutdownQueue or DispatcherQueueController.ShutdownQueueAsync.

-see-also

-examples