Skip to content

Commit

Permalink
Merge pull request #7195 from veelo/patch-1
Browse files Browse the repository at this point in the history
Make task() example compilable.
merged-on-behalf-of: Nicholas Wilson <[email protected]>
  • Loading branch information
dlang-bot authored Sep 25, 2019
2 parents 9709e35 + 9419f57 commit b1e84b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/parallelism.d
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b1e84b8

Please sign in to comment.