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

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

Issue 771993003: Add Isolate.current getter, returning the current isolate as an Isolate object. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years 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 6a2bfb43eace7e641ca6fc260a9a653f37f8ff8d..dbdbd333d8a1ce0c75a0ff54c7b4e32b1c7928c9 100644
--- a/sdk/lib/isolate/isolate.dart
+++ b/sdk/lib/isolate/isolate.dart
@@ -120,6 +120,17 @@ class Isolate {
this.terminateCapability});
/**
+ * Return the current isolate.
+ *
+ * This isolate can be sent to other isolates created using [Isolate.spawn]
floitsch 2014/12/02 12:13:57 a: we should agree on terminology for these kind o
Lasse Reichstein Nielsen 2014/12/03 15:34:30 Removed. Can't think of a short example that isn't
+ * or its control port and capablities can be sent to isolates created
+ * using [Isolate.spawnUri].
+ * It gives access to the capabilities needed to inspect, pause or kill
floitsch 2014/12/02 12:13:56 New line before?
Lasse Reichstein Nielsen 2014/12/03 15:34:30 Removed the previous paragraph.
+ * the isolate, and allows passing these capabilities to others.
+ */
+ external static Isolate get current;
+
+ /**
* Creates and spawns an isolate that shares the same code as the current
* isolate.
*
« runtime/lib/isolate_patch.dart ('K') | « sdk/lib/_internal/compiler/js_lib/isolate_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698