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

Issue 14690009: Make Completers asynchronous. (Closed)

Created:
7 years, 7 months ago by floitsch
Modified:
7 years, 7 months ago
CC:
reviews_dartlang.org, ahe
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 15

Patch Set 2 : Address comments. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -65 lines) Patch
M pkg/scheduled_test/test/substitute_future_test.dart View 1 chunk +4 lines, -2 lines 2 comments Download
M pkg/scheduled_test/test/value_future_test.dart View 1 chunk +14 lines, -5 lines 2 comments Download
M runtime/lib/isolate_patch.dart View 1 chunk +1 line, -1 line 0 comments Download
M runtime/lib/mirrors_impl.dart View 4 chunks +13 lines, -24 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/async/future.dart View 1 1 chunk +32 lines, -1 line 0 comments Download
M sdk/lib/async/future_impl.dart View 1 2 chunks +29 lines, -6 lines 0 comments Download
M tests/co19/co19-dart2dart.status View 1 1 chunk +5 lines, -0 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 1 chunk +5 lines, -0 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 chunk +5 lines, -0 lines 0 comments Download
M tests/lib/async/future_test.dart View 1 chunk +9 lines, -7 lines 0 comments Download
M tests/standalone/io/http_parser_test.dart View 2 chunks +7 lines, -11 lines 0 comments Download
A tests/standalone/io/http_server_early_client_close2_test.dart View 1 1 chunk +37 lines, -0 lines 0 comments Download
M tests/standalone/io/http_server_early_client_close_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/standalone.status View 1 1 chunk +1 line, -0 lines 0 comments Download
M tests/utils/dummy_compiler_test.dart View 2 chunks +1 line, -3 lines 0 comments Download
M tests/utils/recursive_import_test.dart View 2 chunks +1 line, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
floitsch
@Anders: see below. @Nathan: please check the pkg/scheduled_test changes. @Peter: cced for mirror changes. @Srdjan: ...
7 years, 7 months ago (2013-05-04 22:33:24 UTC) #1
floitsch
+srdjan.
7 years, 7 months ago (2013-05-04 22:37:37 UTC) #2
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/14690009/diff/1/sdk/lib/async/future.dart File sdk/lib/async/future.dart (right): https://codereview.chromium.org/14690009/diff/1/sdk/lib/async/future.dart#newcode352 sdk/lib/async/future.dart:352: * known to be the final result of ...
7 years, 7 months ago (2013-05-06 06:49:11 UTC) #3
Anders Johnsen
LGTM https://codereview.chromium.org/14690009/diff/1/tests/standalone/io/http_parser_test.dart File tests/standalone/io/http_parser_test.dart (right): https://codereview.chromium.org/14690009/diff/1/tests/standalone/io/http_parser_test.dart#newcode278 tests/standalone/io/http_parser_test.dart:278: void testWrite(List<int> requestData, [int chunkSize = -1]) { ...
7 years, 7 months ago (2013-05-06 07:44:42 UTC) #4
floitsch
https://codereview.chromium.org/14690009/diff/1/sdk/lib/async/future.dart File sdk/lib/async/future.dart (right): https://codereview.chromium.org/14690009/diff/1/sdk/lib/async/future.dart#newcode352 sdk/lib/async/future.dart:352: * known to be the final result of another ...
7 years, 7 months ago (2013-05-06 15:14:45 UTC) #5
floitsch
Committed patchset #2 manually as r22417 (presubmit successful).
7 years, 7 months ago (2013-05-06 15:15:32 UTC) #6
srdjan
lgtm
7 years, 7 months ago (2013-05-06 16:03:21 UTC) #7
nweiz
https://codereview.chromium.org/14690009/diff/9001/pkg/scheduled_test/test/substitute_future_test.dart File pkg/scheduled_test/test/substitute_future_test.dart (right): https://codereview.chromium.org/14690009/diff/9001/pkg/scheduled_test/test/substitute_future_test.dart#newcode154 pkg/scheduled_test/test/substitute_future_test.dart:154: })); [expectAsync*] is usually less expressive than [expect]/[completes]. In ...
7 years, 7 months ago (2013-05-07 00:11:52 UTC) #8
floitsch
7 years, 7 months ago (2013-05-13 11:19:25 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/14690009/diff/9001/pkg/scheduled_test/test/su...
File pkg/scheduled_test/test/substitute_future_test.dart (right):

https://codereview.chromium.org/14690009/diff/9001/pkg/scheduled_test/test/su...
pkg/scheduled_test/test/substitute_future_test.dart:154: }));
On 2013/05/07 00:11:52, nweiz wrote:
> [expectAsync*] is usually less expressive than [expect]/[completes]. In this
> case, you could write:
> 
>     expect(future.then((_) => future.substitute(new Future.value())),
>         throwsStateError);
> 
> since [throwsA] is Future-aware by default.
> 
> Also, add a comment here explaining why this needs to be async.

done in CL 15128002.

https://codereview.chromium.org/14690009/diff/9001/pkg/scheduled_test/test/va...
File pkg/scheduled_test/test/value_future_test.dart (right):

https://codereview.chromium.org/14690009/diff/9001/pkg/scheduled_test/test/va...
pkg/scheduled_test/test/value_future_test.dart:103: }));
On 2013/05/07 00:11:52, nweiz wrote:
> These can be
> 
>     expect(future.then((_) => future.value), completion(equals(12)));
> 
> etc

done in CL 15128002.

Powered by Google App Engine
This is Rietveld 408576698