Chromium Code Reviews
DescriptionAllow completions to wait for analysis without requiring a busy wait loop.
Two new methods are added to the AnalysisContext which return
Futures--the futures complete with the result of analysis once it's
available, avoiding the need for a busy wait loop in the completion engine.
The futures are guaranteed to complete eventually (provided that
analysis reaches quiescence). If it is determined that the requested
analysis will never become available (e.g. because analysis was
requested for a file or file/library combination that is not subject
to analysis), the future will be completed with an
AnalysisNotScheduledError, so that the client isn't stalled forever
waiting for analysis results.
R=brianwilkerson@google.com
Committed: https://code.google.com/p/dart/source/detail?r=42339
Patch Set 1 #
Total comments: 17
Messages
Total messages: 11 (2 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||