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

Unified Diff: frog/lib/newisolate.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
« no previous file with comments | « frog/lib/isolate_serialization.dart ('k') | frog/minfrog » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/lib/newisolate.dart
diff --git a/frog/lib/newisolate.dart b/frog/lib/newisolate.dart
deleted file mode 100644
index ad51d85a1156ae65d5a2a16e3892ce37819bfbca..0000000000000000000000000000000000000000
--- a/frog/lib/newisolate.dart
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2012, 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.
-
-// TODO(sigmund): separate isolates from dart:core
-// #library('dart:isolate');
-
-/**
- * [Isolate2] provides APIs to spawn, communicate, and stop an isolate. An
- * isolate can be spawned by simply creating a new instance of [Isolate2]. The
- * [Isolate2] instance exposes a port to communicate with the isolate and
- * methods to control its behavior remotely.
- */
- // TODO(sigmund): rename to Isolate once we delete the old implementation
-interface Isolate2 default IsolateFactory {
-
- /**
- * Create and spawn an isolate that shares the same code as the current
- * isolate, but that starts from [topLevelFunction]. The [topLevelFunction]
- * argument must be a static method closure that takes exactly one
- * argument of type [ReceivePort]. It is illegal to pass a function closure
- * that captures values in scope.
- *
- * When an child isolate is spawned, a new [ReceivePort] is created for it.
- * This port is passed to [topLevelFunction]. A [SendPort] derived from
- * such port is sent to the spawner isolate, which is accessible in
- * [Isolate2.sendPort] field of this instance.
- */
- Isolate2.fromCode(Function topLevelFunction);
-
- /**
- * Create and spawn an isolate whose code is available at [uri].
- * The code in [uri] must have an method called [: isolateMain :], which takes
- * exactly one argument of type [ReceivePort].
- * Like with [Isolate2.fromCode], a [ReceivePort] is created in the child
- * isolate, and a [SendPort] to it is stored in [Isolate2.sendPort].
- */
- Isolate2.fromUri(String uri);
-
- /** Port used to communicate with this isolate. */
- SendPort sendPort;
-
- /** Stop this isolate. */
- void stop();
-}
-
« no previous file with comments | « frog/lib/isolate_serialization.dart ('k') | frog/minfrog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698