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

Unified Diff: sdk/lib/isolate/isolate.dart

Issue 163523003: Add 'startPaused' option to Isolate.spawn*. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Actually add test. Created 6 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: sdk/lib/isolate/isolate.dart
diff --git a/sdk/lib/isolate/isolate.dart b/sdk/lib/isolate/isolate.dart
index 4a5b50a62af7971c82718cc7120e2f0f5e077169..0f01b017c43b50815bef82b12abb57e67bc20513 100644
--- a/sdk/lib/isolate/isolate.dart
+++ b/sdk/lib/isolate/isolate.dart
@@ -58,7 +58,8 @@ class Isolate {
* Returns a future that will complete with an [Isolate] instance if the
* spawning succeeded. It will complete with an error otherwise.
*/
- external static Future<Isolate> spawn(void entryPoint(message), var message);
+ external static Future<Isolate> spawn(void entryPoint(message), var message,
+ { bool startPaused: false });
kasperl 2014/02/14 13:40:32 Wouldn't 'paused' be enough? The fact that you're
Lasse Reichstein Nielsen 2014/02/18 08:13:36 Fine with me. Shorter is better.
/**
* Creates and spawns an isolate that runs the code from the library with
@@ -80,7 +81,7 @@ class Isolate {
* spawning succeeded. It will complete with an error otherwise.
*/
external static Future<Isolate> spawnUri(
- Uri uri, List<String> args, var message);
+ Uri uri, List<String> args, var message, { bool startPaused: false });
/**

Powered by Google App Engine
This is Rietveld 408576698