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

Unified Diff: sky/specs/runloop.md

Issue 974313003: Specs: fix typos in style2.md, checkin forgotten builtins.md, add guard feature to runloop.md, rena… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 | « sky/specs/events.md ('k') | sky/specs/style2.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/runloop.md
diff --git a/sky/specs/runloop.md b/sky/specs/runloop.md
index a9b9e9e0d51a45353c92d234d571cfdec7569a12..b080090af1b1d6b4e2fe487d21d4fd569b36bbe2 100644
--- a/sky/specs/runloop.md
+++ b/sky/specs/runloop.md
@@ -11,6 +11,18 @@ fired.
class DeadlineExceededException implements Exception { }
```
+There is a method you can use that guards your code against these
+exceptions:
+
+```dart
+typedef void Callback();
+external guardAgainstDeadlineExceptions(Callback callback);
+// runs callback.
+// if the time budget for the _task_ expires while the callback is
+// running, the callback isn't interrupted, but the method will throw
+// an exception once the callback returns.
+```
+
When Sky is to *process a task queue until a particular time*, with a
queue *relevant task queue*, bits *filter bits*, a time
*particular time*, and an *idle rule* which is either "sleep" or
« no previous file with comments | « sky/specs/events.md ('k') | sky/specs/style2.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698