sort_constructors_first (#22575)

This commit is contained in:
Alexandre Ardhuin
2018-10-04 07:28:07 +02:00
committed by GitHub
parent a68b03e9ce
commit 2ea1d81cdc
74 changed files with 449 additions and 444 deletions

View File

@@ -49,17 +49,6 @@ Future<TaskResult> task(TaskFunction task) {
}
class _TaskRunner {
static final Logger logger = Logger('TaskRunner');
final TaskFunction task;
// TODO(ianh): workaround for https://github.com/dart-lang/sdk/issues/23797
RawReceivePort _keepAlivePort;
Timer _startTaskTimeout;
bool _taskStarted = false;
final Completer<TaskResult> _completer = Completer<TaskResult>();
_TaskRunner(this.task) {
registerExtension('ext.cocoonRunTask',
(String method, Map<String, String> parameters) async {
@@ -75,6 +64,17 @@ class _TaskRunner {
});
}
final TaskFunction task;
// TODO(ianh): workaround for https://github.com/dart-lang/sdk/issues/23797
RawReceivePort _keepAlivePort;
Timer _startTaskTimeout;
bool _taskStarted = false;
final Completer<TaskResult> _completer = Completer<TaskResult>();
static final Logger logger = Logger('TaskRunner');
/// Signals that this task runner finished running the task.
Future<TaskResult> get whenDone => _completer.future;