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

Unified Diff: lib/isolate/runtime/ports.dart

Issue 9422019: isolates refactor: this change introduces 'dart:isolate' as a library. This is a (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 8 years, 10 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
Index: lib/isolate/runtime/ports.dart
diff --git a/runtime/lib/isolate.dart b/lib/isolate/runtime/ports.dart
similarity index 85%
rename from runtime/lib/isolate.dart
rename to lib/isolate/runtime/ports.dart
index 13ec8dd66cd9f39bfcfb6878fbeea9f35e76e278..7d74fa20ec49737710fd1dbc398b1695e10ef494 100644
--- a/runtime/lib/isolate.dart
+++ b/lib/isolate/runtime/ports.dart
@@ -140,18 +140,3 @@ class SendPortImpl implements SendPort {
}
-class IsolateNatives {
- static Future<SendPort> spawn(Isolate isolate, bool isLight) {
- Completer<SendPort> completer = new Completer<SendPort>();
- SendPort port = _start(isolate, isLight);
- completer.complete(port);
- return completer.future;
- }
-
- // Starts a new isolate calling the run method on a new instance of the
- // remote class's type.
- // Returns the send port which is passed to the newly created isolate.
- // This method is being dispatched to from the public core library code.
- static SendPort _start(Isolate isolate, bool light)
- native "IsolateNatives_start";
-}

Powered by Google App Engine
This is Rietveld 408576698