``` import std.parallelism; auto pool = new TaskPool(options.threadCount); foreach (_; 0 .. options.iterationCount) { switch (options.operation) { static foreach(e; EnumMembers!Operation) { case e: pool.put(task!e(options)); break; } pool.finish(); ```
Does that do the trick?