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

Issue 2450053003: Replace Stream with monitor. (Closed)

Created:
4 years, 1 month ago by scheglov
Modified:
4 years, 1 month ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -26 lines) Patch
M pkg/analyzer/lib/src/dart/analysis/driver.dart View 6 chunks +60 lines, -26 lines 2 comments Download

Messages

Total messages: 6 (1 generated)
scheglov
4 years, 1 month ago (2016-10-26 03:00:13 UTC) #1
scheglov
Committed patchset #1 (id:1) manually as d1636b38b31483612a5318dfe70ee758c3380848 (presubmit successful).
4 years, 1 month ago (2016-10-26 03:00:27 UTC) #3
Brian Wilkerson
lgtm
4 years, 1 month ago (2016-10-26 08:09:46 UTC) #4
Paul Berry
lgtm https://codereview.chromium.org/2450053003/diff/1/pkg/analyzer/lib/src/dart/analysis/driver.dart File pkg/analyzer/lib/src/dart/analysis/driver.dart (right): https://codereview.chromium.org/2450053003/diff/1/pkg/analyzer/lib/src/dart/analysis/driver.dart#newcode187 pkg/analyzer/lib/src/dart/analysis/driver.dart:187: * when the client cancels the subscription. It ...
4 years, 1 month ago (2016-10-31 16:40:47 UTC) #5
scheglov
4 years, 1 month ago (2016-10-31 17:45:44 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/2450053003/diff/1/pkg/analyzer/lib/src/dart/a...
File pkg/analyzer/lib/src/dart/analysis/driver.dart (right):

https://codereview.chromium.org/2450053003/diff/1/pkg/analyzer/lib/src/dart/a...
pkg/analyzer/lib/src/dart/analysis/driver.dart:187: * when the client cancels
the subscription.
On 2016/10/31 16:40:47, Paul Berry wrote:
> It looks to me like it's not safe to call `.results` more than once on a given
> AnalysisDriver.  Is that correct?  If so, could you please add a note to this
> effect in the doc comment?

Yes, this is a normal Stream, not broadcast.
So, only one subscriber over the lifetime.

Powered by Google App Engine
This is Rietveld 408576698