Skip to content

Commit

Permalink
Update README.md (dart-lang/pool#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmorgan authored and nex3 committed Jul 5, 2017
1 parent c289d1c commit 4b60353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/pool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ final pool = new Pool(10, timeout: new Duration(seconds: 30));
Future<String> readFile(String path) {
// Since the call to [File.readAsString] is within [withResource], no more
// than ten files will be open at once.
return pool.withResource(() => return new File(path).readAsString());
return pool.withResource(() => new File(path).readAsString());
}
```

Expand Down

0 comments on commit 4b60353

Please sign in to comment.