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

Issue 14070010: Refactor Future constructors. (Closed)

Created:
7 years, 8 months ago by floitsch
Modified:
7 years, 8 months ago
CC:
reviews_dartlang.org, blois, nweiz, Jennifer Messerly, Siggi Cherem (dart-lang)
Visibility:
Public.

Description

Refactor Future constructors. BUG= Committed: https://code.google.com/p/dart/source/detail?r=21517

Patch Set 1 #

Total comments: 9

Patch Set 2 : Adapt test after AsyncError removal. #

Patch Set 3 : Added co19 issue number. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -271 lines) Patch
M pkg/analyzer_experimental/bin/analyzer.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/http/lib/src/utils.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/http/test/mock_client_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/http/test/multipart_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/intl/example/basic/messages_all.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/intl/lib/date_symbol_data_local.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/intl/lib/generate_localized.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/intl/lib/intl_browser.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/intl/lib/intl_standalone.dart View 3 chunks +5 lines, -5 lines 0 comments Download
M pkg/oauth2/lib/src/client.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/oauth2/test/authorization_code_grant_test.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/oauth2/test/client_test.dart View 1 9 chunks +9 lines, -9 lines 0 comments Download
M pkg/oauth2/test/credentials_test.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/oauth2/test/utils.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/lib/scheduled_process.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/scheduled_test/lib/scheduled_server.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/lib/src/descriptor/directory_descriptor.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/scheduled_test/lib/src/descriptor/file_descriptor.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/lib/src/descriptor/nothing_descriptor.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/scheduled_test/lib/src/descriptor/pattern_descriptor.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/lib/src/mock_clock.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/lib/src/schedule.dart View 1 3 chunks +4 lines, -4 lines 0 comments Download
M pkg/scheduled_test/lib/src/scheduled_server/handler.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/lib/src/task.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/lib/src/utils.dart View 1 3 chunks +4 lines, -4 lines 0 comments Download
M pkg/scheduled_test/test/descriptor/async_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/scheduled_test/test/scheduled_test/simple_test.dart View 6 chunks +7 lines, -7 lines 0 comments Download
M pkg/scheduled_test/test/substitute_future_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/scheduled_test/test/utils.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/unittest/lib/unittest.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/unittest/test/unittest_test.dart View 2 chunks +9 lines, -9 lines 0 comments Download
M runtime/bin/socket_patch.dart View 1 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/lib/deferred_load_patch.dart View 1 chunk +1 line, -1 line 0 comments Download
M samples/tests/samples/lib/layout/layout_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/compiler.dart View 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/lib/isolate_helper.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart View 5 chunks +8 lines, -10 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/source_file_provider.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/dartdoc/lib/dartdoc.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/async/future.dart View 1 3 chunks +30 lines, -15 lines 0 comments Download
M sdk/lib/async/future_impl.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart View 15 chunks +15 lines, -15 lines 0 comments Download
M sdk/lib/indexed_db/dartium/indexed_db_dartium.dart View 15 chunks +15 lines, -15 lines 0 comments Download
M sdk/lib/io/directory_impl.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M sdk/lib/io/file_impl.dart View 1 7 chunks +7 lines, -7 lines 0 comments Download
M sdk/lib/io/http_impl.dart View 1 11 chunks +11 lines, -11 lines 0 comments Download
M sdk/lib/io/http_parser.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/io/link.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M sdk/lib/io/secure_socket.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/io/websocket_impl.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/co19/co19-compiler.status View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M tests/co19/co19-dart2dart.status View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M tests/co19/co19-dart2js.status View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/analyze_only_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/dart_backend_test.dart View 1 chunk +9 lines, -9 lines 0 comments Download
M tests/compiler/dart2js/memory_source_file_helper.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/html/fileapi_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/html/websql_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/language/store_to_load_forwarding_phis_vm_test.dart View 1 chunk +1 line, -1 line 0 comments Download
A tests/lib/async/future_constructor_test.dart View 1 1 chunk +38 lines, -0 lines 0 comments Download
M tests/lib/async/future_delayed_error_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/async/future_test.dart View 1 7 chunks +19 lines, -13 lines 0 comments Download
M tests/lib/async/futures_test.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tests/lib/async/slow_consumer2_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/async/slow_consumer3_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/lib/async/slow_consumer_test.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/io/directory_fuzz_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/file_system_delete_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_auth_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/io/http_proxy_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/io_sink_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/standalone.status View 1 chunk +4 lines, -0 lines 0 comments Download
M tools/dom/docs/lib/docs.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tools/dom/templates/html/impl/impl_IDBCursor.darttemplate View 2 chunks +2 lines, -2 lines 0 comments Download
M tools/dom/templates/html/impl/impl_IDBFactory.darttemplate View 4 chunks +4 lines, -4 lines 0 comments Download
M tools/dom/templates/html/impl/impl_IDBIndex.darttemplate View 3 chunks +3 lines, -3 lines 0 comments Download
M tools/dom/templates/html/impl/impl_IDBObjectStore.darttemplate View 6 chunks +6 lines, -6 lines 0 comments Download
M tools/release/version.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/command_uploader.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/entrypoint.dart View 6 chunks +8 lines, -8 lines 0 comments Download
M utils/pub/error_group.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/git.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M utils/pub/git_source.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M utils/pub/hosted_source.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M utils/pub/io.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M utils/pub/oauth2.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/path_source.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M utils/pub/pub.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M utils/pub/source.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M utils/pub/utils.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M utils/pub/validator/compiled_dartdoc.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/validator/dependency.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/pub/validator/directory.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/validator/lib.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/validator/license.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/validator/name.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/validator/pubspec_field.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/validator/utf8_readme.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/pub/version_solver.dart View 3 chunks +3 lines, -4 lines 0 comments Download
M utils/tests/pub/error_group_test.dart View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M utils/tests/pub/test_pub.dart View 3 chunks +3 lines, -3 lines 0 comments Download
M utils/tests/pub/validator/dependency_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M utils/tests/pub/validator/size_test.dart View 1 chunk +1 line, -1 line 0 comments Download
M utils/tests/pub/version_solver_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
floitsch
I'm willing to discuss the "Future.sync" name (although I'm find it not too bad), but ...
7 years, 8 months ago (2013-04-13 15:51:41 UTC) #1
Sean Eagan
On 2013/04/13 15:51:41, floitsch wrote: > I'm willing to discuss the "Future.sync" name (although I'm ...
7 years, 8 months ago (2013-04-13 18:35:00 UTC) #2
Anders Johnsen
LGTM https://codereview.chromium.org/14070010/diff/1/sdk/lib/async/future.dart File sdk/lib/async/future.dart (right): https://codereview.chromium.org/14070010/diff/1/sdk/lib/async/future.dart#newcode143 sdk/lib/async/future.dart:143: * A future that completes with an error ...
7 years, 8 months ago (2013-04-15 08:59:06 UTC) #3
Lasse Reichstein Nielsen
lgtm https://codereview.chromium.org/14070010/diff/1/sdk/lib/async/future.dart File sdk/lib/async/future.dart (right): https://codereview.chromium.org/14070010/diff/1/sdk/lib/async/future.dart#newcode104 sdk/lib/async/future.dart:104: new _ThenFuture<dynamic, T>((_) => computation()); I'd prefer using ...
7 years, 8 months ago (2013-04-15 10:27:45 UTC) #4
nweiz
pub and pkg changes lgtm
7 years, 8 months ago (2013-04-15 19:53:39 UTC) #5
floitsch
https://codereview.chromium.org/14070010/diff/1/sdk/lib/async/future.dart File sdk/lib/async/future.dart (right): https://codereview.chromium.org/14070010/diff/1/sdk/lib/async/future.dart#newcode104 sdk/lib/async/future.dart:104: new _ThenFuture<dynamic, T>((_) => computation()); On 2013/04/15 10:27:46, Lasse ...
7 years, 8 months ago (2013-04-15 20:30:11 UTC) #6
floitsch
https://codereview.chromium.org/14070010/diff/1/tests/lib/async/future_constructor_test.dart File tests/lib/async/future_constructor_test.dart (right): https://codereview.chromium.org/14070010/diff/1/tests/lib/async/future_constructor_test.dart#newcode27 tests/lib/async/future_constructor_test.dart:27: Future err2 = new Future.error(new AsyncError("AsyncError"))..catchError((_){}); On 2013/04/15 08:59:06, ...
7 years, 8 months ago (2013-04-15 21:20:50 UTC) #7
floitsch
7 years, 8 months ago (2013-04-15 21:25:57 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 manually as r21517 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698