task
January 28, 2026 ยท View on GitHub
Shows how to use xtd::threading::tasks:task class.
Sources
Build and run
Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:
xtdc run
Output
counter = 1
counter = 2
counter = 3
counter = 4
counter = 5
This is a string result
[taskId (3)] Run this action in parallel!
[taskId (4)] Run this action in parallel!
[taskId (5)] Run this action in parallel!
[taskId (6)] Run this action in parallel!
[taskId (7)] Run this action in parallel!
[taskId (8)] Run this action in parallel!