Skip to main content

Example

Use a task queue to submit callbacks in the future by using the XTaskQueueSubmitDelayedCallback API. In this way, you can retry a failed call after a short delay, or use it as a cheap timer for periodic events. The following example invokes 10 callbacks once every 500 ms.

Sample Output

See also

Designing the task queue
Last modified on August 4, 2026