diff --git a/std/parallelism.d b/std/parallelism.d index 589eb79badb..ba01bbf0495 100644 --- a/std/parallelism.d +++ b/std/parallelism.d @@ -847,7 +847,7 @@ void main() { // Create and execute a Task for reading // foo.txt. - auto file1Task = task(&read, "foo.txt"); + auto file1Task = task(&read!string, "foo.txt", size_t.max); file1Task.executeInNewThread(); // Read bar.txt in parallel.