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

Unified Diff: runtime/lib/isolate_patch.dart

Issue 163523003: Add 'startPaused' option to Isolate.spawn*. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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
« no previous file with comments | « no previous file | sdk/lib/_internal/lib/isolate_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/isolate_patch.dart
diff --git a/runtime/lib/isolate_patch.dart b/runtime/lib/isolate_patch.dart
index a5955a94bb4e1fa853c7f785852cbed467672994..87a8024f0ec89c4f379cdb4b0631e82dca536472 100644
--- a/runtime/lib/isolate_patch.dart
+++ b/runtime/lib/isolate_patch.dart
@@ -227,7 +227,8 @@ void _startIsolate(Function entryPoint, bool isSpawnUri) {
patch class Isolate {
/* patch */ static Future<Isolate> spawn(
- void entryPoint(message), var message) {
+ void entryPoint(message), var message, { bool paused: false }) {
+ // `paused` isn't handled yet.
try {
// The VM will invoke [_startIsolate] with entryPoint as argument.
SendPort controlPort = _spawnFunction(entryPoint);
@@ -246,7 +247,8 @@ patch class Isolate {
}
/* patch */ static Future<Isolate> spawnUri(
- Uri uri, List<String> args, var message) {
+ Uri uri, List<String> args, var message, { bool paused: false }) {
+ // `paused` isn't handled yet.
try {
// The VM will invoke [_startIsolate] and not `main`.
SendPort controlPort = _spawnUri(uri.toString());
« no previous file with comments | « no previous file | sdk/lib/_internal/lib/isolate_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698