Skip to main content

Example

If you have long-running work, you might want to duplicate the task queue handle for the duration of the work. In this way, anyone calling XTaskQueueCloseHandle won’t close the queue while you still need it. This is shown in the following example.

See also

Designing the task queue
Last modified on August 4, 2026