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

Issue 91213002: Add Future.timeout. (Closed)

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

Description

Patch Set 1 #

Total comments: 8

Patch Set 2 : Addressed comments. Updated classes implemnting Future. Special-cased the no-onTimeout-arg case. #

Patch Set 3 : Bad type in test. #

Patch Set 4 : Update documentation #

Patch Set 5 : Expect failure on d8. #

Patch Set 6 : Use Timer.isActive instead of boolean flag. #

Total comments: 2

Patch Set 7 : Update indentation. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -1 line) Patch
M pkg/barback/lib/src/cancelable_future.dart View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M pkg/scheduled_test/lib/src/substitute_future.dart View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/scheduled_test/lib/src/value_future.dart View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/error_group.dart View 1 1 chunk +5 lines, -0 lines 0 comments Download
M sdk/lib/async/future.dart View 1 2 3 1 chunk +27 lines, -0 lines 0 comments Download
M sdk/lib/async/future_impl.dart View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
M tests/lib/async/future_test.dart View 1 1 chunk +2 lines, -0 lines 0 comments Download
A tests/lib/async/future_timeout_test.dart View 1 2 1 chunk +187 lines, -0 lines 0 comments Download
M tests/lib/async/future_value_chain4_test.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M tests/lib/lib.status View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Lasse Reichstein Nielsen
WDYT?
7 years ago (2013-11-27 10:27:34 UTC) #1
floitsch
LGTM. https://codereview.chromium.org/91213002/diff/1/sdk/lib/async/future.dart File sdk/lib/async/future.dart (right): https://codereview.chromium.org/91213002/diff/1/sdk/lib/async/future.dart#newcode417 sdk/lib/async/future.dart:417: * If this future does not complete before ...
7 years ago (2013-11-27 12:31:15 UTC) #2
Lasse Reichstein Nielsen
PTAL https://codereview.chromium.org/91213002/diff/1/sdk/lib/async/future.dart File sdk/lib/async/future.dart (right): https://codereview.chromium.org/91213002/diff/1/sdk/lib/async/future.dart#newcode417 sdk/lib/async/future.dart:417: * If this future does not complete before ...
7 years ago (2013-11-27 12:54:20 UTC) #3
floitsch
Still LGTM. Add CCs for the affected files.
7 years ago (2013-11-27 13:05:48 UTC) #4
Lasse Reichstein Nielsen
Adding nweiz.
7 years ago (2013-11-27 13:08:48 UTC) #5
nweiz
It seems a little weird to me to make this an instance method on Future ...
7 years ago (2013-11-27 20:50:36 UTC) #6
Lasse Reichstein Nielsen
https://codereview.chromium.org/91213002/diff/70001/pkg/barback/lib/src/cancelable_future.dart File pkg/barback/lib/src/cancelable_future.dart (right): https://codereview.chromium.org/91213002/diff/70001/pkg/barback/lib/src/cancelable_future.dart#newcode36 pkg/barback/lib/src/cancelable_future.dart:36: _completer.future.timeout(timeLimit, onTimeout); Done, for consistency, but I'm fairly sure ...
7 years ago (2013-11-28 08:11:23 UTC) #7
Lasse Reichstein Nielsen
7 years ago (2013-11-28 08:16:12 UTC) #8
Message was sent while issue was closed.
Committed patchset #7 manually as r30745 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698