If I use TTask from System.Threading. What is the best practise to pass arguments to my "work procedure"? Lets say I want simulate something like the parallel-for.
for i := 0 to 10 do ...
...
TTask.Create (procedure ()
begin
// How would i get the CURRENT i here?