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

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: Add test 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
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/isolate_patch.dart ('k') | tests/isolate/isolate_current_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/isolate/isolate.dart
diff --git a/sdk/lib/isolate/isolate.dart b/sdk/lib/isolate/isolate.dart
index 6a2bfb43eace7e641ca6fc260a9a653f37f8ff8d..35d2a8b15c90cb444672753f7b197714faa39ab3 100644
--- a/sdk/lib/isolate/isolate.dart
+++ b/sdk/lib/isolate/isolate.dart
@@ -120,6 +120,15 @@ class Isolate {
this.terminateCapability});
/**
+ * Return the current [Isolate].
+ *
+ * The isolate gives access to the capabilities needed to inspect,
+ * pause or kill the isolate, and allows granting these capabilities
+ * to others.
+ */
+ external static Isolate get current;
+
+ /**
* Creates and spawns an isolate that shares the same code as the current
* isolate.
*
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/isolate_patch.dart ('k') | tests/isolate/isolate_current_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698