Zardoz wrote: > const num = 10; > > foreach (t; 0..num) { > > foreach(i, ref elem; taskPool.parallel(logs, 100)) { > elem = log(i + 1.0); > } > > } I think you just spawned 10 tasks. Look at foreach (t; 0..num).