Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Issue 94843002: Unify dart:async and pub/io.dart TimeoutException classes. (Closed)

Created:
7 years ago by Lasse Reichstein Nielsen
Modified:
7 years ago
Reviewers:
nweiz, floitsch, Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Unify dart:async and pub/io.dart TimeoutException classes. R=floitsch@google.com, nweiz@google.com, rnystrom@google.com Committed: https://code.google.com/p/dart/source/detail?r=30809

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -47 lines) Patch
M sdk/lib/_internal/pub/bin/pub.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/barback/dart2js_transformer.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/barback/sources.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/command.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/command/build.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/command/cache.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/command/help.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/command/lish.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/command/list_package_dirs.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/command/serve.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/command/uploader.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/dart.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/entrypoint.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/git.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/http.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/io.dart View 1 3 chunks +5 lines, -12 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/log.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/oauth2.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/source.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/source/git.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/source/hosted.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/source/path.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/system_cache.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/validator/compiled_dartdoc.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/validator/directory.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/validator/lib.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/validator/license.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/validator/name.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/lib/src/validator/utf8_readme.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/descriptor/tar.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/io_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/test_pub.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/async/future.dart View 1 1 chunk +12 lines, -3 lines 0 comments Download
M sdk/lib/async/future_impl.dart View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Lasse Reichstein Nielsen
Any objections to unifying the pub TimeoutException with the new one in dart:async? I've changed ...
7 years ago (2013-11-28 12:21:06 UTC) #1
floitsch
LGTM. Please, wait for Bob and Nathan before committing.
7 years ago (2013-11-28 13:11:41 UTC) #2
Lasse Reichstein Nielsen
ping Bob, Nathan?
7 years ago (2013-12-02 08:46:33 UTC) #3
Bob Nystrom
No objections from me. One request then LGTM! https://codereview.chromium.org/94843002/diff/1/sdk/lib/_internal/pub/lib/src/io.dart File sdk/lib/_internal/pub/lib/src/io.dart (right): https://codereview.chromium.org/94843002/diff/1/sdk/lib/_internal/pub/lib/src/io.dart#newcode9 sdk/lib/_internal/pub/lib/src/io.dart:9: export ...
7 years ago (2013-12-02 22:40:42 UTC) #4
nweiz
lgtm https://codereview.chromium.org/94843002/diff/1/sdk/lib/_internal/pub/lib/src/io.dart File sdk/lib/_internal/pub/lib/src/io.dart (right): https://codereview.chromium.org/94843002/diff/1/sdk/lib/_internal/pub/lib/src/io.dart#newcode633 sdk/lib/_internal/pub/lib/src/io.dart:633: Future timeout(Future input, int milliseconds, String description) { ...
7 years ago (2013-12-02 23:54:21 UTC) #5
Lasse Reichstein Nielsen
Committed patchset #2 manually as r30809 (presubmit successful).
7 years ago (2013-12-03 08:38:14 UTC) #6
Lasse Reichstein Nielsen
7 years ago (2013-12-03 08:38:28 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/94843002/diff/1/sdk/lib/_internal/pub/lib/src...
File sdk/lib/_internal/pub/lib/src/io.dart (right):

https://codereview.chromium.org/94843002/diff/1/sdk/lib/_internal/pub/lib/src...
sdk/lib/_internal/pub/lib/src/io.dart:9: export 'dart:async' show
TimeoutException;
Removed.
I don't think it's needed anywhere, but I didn't want to change the public
signature of the library because I don't know where it is used. It's probably
only internal use, so it should be fine.

https://codereview.chromium.org/94843002/diff/1/sdk/lib/_internal/pub/lib/src...
sdk/lib/_internal/pub/lib/src/io.dart:633: Future timeout(Future input, int
milliseconds, String description) {
On 2013/12/02 23:54:22, nweiz wrote:
> Add a TODO assigned to me to replace this with [Future.timeout].

Done.

Powered by Google App Engine
This is Rietveld 408576698