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

Issue 875163002: Make AnalysisServer.onAnalysisComplete a Future and wait for it before refactoring. (Closed)

Created:
5 years, 10 months ago by scheglov
Modified:
5 years, 10 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make AnalysisServer.onAnalysisComplete a Future and wait for it before refactoring. R=brianwilkerson@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=43158

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use Completer instead of busy loop #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -61 lines) Patch
M pkg/analysis_server/lib/src/analysis_server.dart View 1 4 chunks +18 lines, -8 lines 0 comments Download
M pkg/analysis_server/lib/src/edit/edit_domain.dart View 1 chunk +13 lines, -2 lines 1 comment Download
M pkg/analysis_server/test/analysis_abstract.dart View 1 chunk +2 lines, -3 lines 0 comments Download
M pkg/analysis_server/test/domain_analysis_test.dart View 15 chunks +29 lines, -30 lines 0 comments Download
M pkg/analysis_server/test/domain_execution_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/analysis_server/test/mocks.dart View 1 chunk +0 lines, -17 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
scheglov
5 years, 10 months ago (2015-01-26 20:45:18 UTC) #1
Brian Wilkerson
https://codereview.chromium.org/875163002/diff/1/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/875163002/diff/1/pkg/analysis_server/lib/src/analysis_server.dart#newcode245 pkg/analysis_server/lib/src/analysis_server.dart:245: return new Future(() => onAnalysisComplete); This concerns me. Given ...
5 years, 10 months ago (2015-01-26 21:26:32 UTC) #3
scheglov
PTAL https://codereview.chromium.org/875163002/diff/1/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/875163002/diff/1/pkg/analysis_server/lib/src/analysis_server.dart#newcode245 pkg/analysis_server/lib/src/analysis_server.dart:245: return new Future(() => onAnalysisComplete); On 2015/01/26 21:26:32, ...
5 years, 10 months ago (2015-01-26 22:05:53 UTC) #4
Brian Wilkerson
LGTM
5 years, 10 months ago (2015-01-26 22:30:46 UTC) #5
scheglov
Committed patchset #2 (id:20001) manually as 43158 (presubmit successful).
5 years, 10 months ago (2015-01-26 22:31:57 UTC) #6
Paul Berry
5 years, 10 months ago (2015-01-26 22:32:11 UTC) #7
Message was sent while issue was closed.
lgtm

https://codereview.chromium.org/875163002/diff/20001/pkg/analysis_server/lib/...
File pkg/analysis_server/lib/src/edit/edit_domain.dart (right):

https://codereview.chromium.org/875163002/diff/20001/pkg/analysis_server/lib/...
pkg/analysis_server/lib/src/edit/edit_domain.dart:365: return
server.onAnalysisComplete.then((_) {
As we discussed in person, it would be nice in a future CL to only do this for
non-local refactorings.  Can we have a TODO comment to remind us about that?

Powered by Google App Engine
This is Rietveld 408576698