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

Unified Diff: lib/src/util/isolate_wrapper.dart

Issue 1290763003: Drop support for old SDK and shelf versions. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/util/io.dart ('k') | lib/src/util/one_off_handler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/util/isolate_wrapper.dart
diff --git a/lib/src/util/isolate_wrapper.dart b/lib/src/util/isolate_wrapper.dart
deleted file mode 100644
index b9b62870f31364179f3b4d4feeb1306979cc5554..0000000000000000000000000000000000000000
--- a/lib/src/util/isolate_wrapper.dart
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library test.util.isolate_wrapper;
-
-import 'dart:async';
-import 'dart:isolate';
-
-// TODO(nweiz): Get rid of this when issue 6610 is fixed.
-/// This is a wrapper around an [Isolate] that supports a callback that will
-/// fire when [Isolate.exit] is called.
-///
-/// This is necessary to delete the source directory of the isolate only once
-/// the Isolate completes. Note that the callback won't necessarily fire before
-/// the Isolate is killed, but it comes close enough for our purposes.
-///
-/// This avoids implementing Isolate because there's no interface that's
-/// compatible with both Dart before 1.11 and Dart after 1.11.
-class IsolateWrapper {
- final Isolate _inner;
-
- final Function _onExit;
-
- Capability get pauseCapability => _inner.pauseCapability;
- SendPort get controlPort => _inner.controlPort;
- Stream get errors => _inner.errors;
- Capability get terminateCapability => _inner.terminateCapability;
-
- IsolateWrapper(this._inner, this._onExit);
-
- void addErrorListener(SendPort port) => _inner.addErrorListener(port);
- void addOnExitListener(SendPort port) => _inner.addOnExitListener(port);
- Capability pause([Capability resumeCapability]) =>
- _inner.pause(resumeCapability);
- void ping(SendPort responsePort) => _inner.ping(responsePort);
- void removeErrorListener(SendPort port) => _inner.removeErrorListener(port);
- void removeOnExitListener(SendPort port) => _inner.removeOnExitListener(port);
- void resume(Capability resumeCapability) => _inner.resume(resumeCapability);
- void setErrorsFatal(bool errorsAreFatal) =>
- _inner.setErrorsFatal(errorsAreFatal);
- String toString() => _inner.toString();
-
- void kill() {
- _inner.kill();
- _onExit();
- }
-}
« no previous file with comments | « lib/src/util/io.dart ('k') | lib/src/util/one_off_handler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698