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

Issue 637893002: Use a _FutureListener separate from the _Future to hold listeners. (Closed)

Created:
6 years, 2 months ago by Lasse Reichstein Nielsen
Modified:
6 years, 2 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org, floitsch
Visibility:
Public.

Description

Use a _FutureListener separate from the _Future to hold listeners. This separates the concerns, and makes _Future a three-field class. Holding on to a future gets cheaper. R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=41006

Patch Set 1 #

Patch Set 2 : Don't check that source is complete, it always is. #

Total comments: 12

Patch Set 3 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -192 lines) Patch
M sdk/lib/async/future_impl.dart View 1 2 15 chunks +172 lines, -186 lines 0 comments Download
M sdk/lib/async/schedule_microtask.dart View 1 chunk +2 lines, -4 lines 0 comments Download
M sdk/lib/async/zone.dart View 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
Lasse Reichstein Nielsen
This is mainly refactoring to make the structures simpler. Performance change is small on VM, ...
6 years, 2 months ago (2014-10-08 10:59:14 UTC) #2
Søren Gjesse
lgtm This is complicated code, but it seems to keep the same structure. https://codereview.chromium.org/637893002/diff/20001/sdk/lib/async/future_impl.dart File ...
6 years, 2 months ago (2014-10-09 06:55:52 UTC) #3
Lasse Reichstein Nielsen
https://codereview.chromium.org/637893002/diff/20001/sdk/lib/async/future_impl.dart File sdk/lib/async/future_impl.dart (right): https://codereview.chromium.org/637893002/diff/20001/sdk/lib/async/future_impl.dart#newcode83 sdk/lib/async/future_impl.dart:83: _FutureOnValue onValue, Function errorCallback) Yes. It can be an ...
6 years, 2 months ago (2014-10-09 07:53:22 UTC) #4
Lasse Reichstein Nielsen
6 years, 2 months ago (2014-10-09 07:54:29 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 manually as r41006 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698