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

Unified Diff: sky/specs/script.md

Issue 919693007: Specs: Implement the Dispatcher classes. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add zone support 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') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/specs/script.md
diff --git a/sky/specs/script.md b/sky/specs/script.md
index 3b241991d66afdbc94763d23b93961b16fbe2f2d..52be56f1b6701bbf616f741598842d3ae4b5db0b 100644
--- a/sky/specs/script.md
+++ b/sky/specs/script.md
@@ -105,33 +105,3 @@ assumed to exist:
ClassName = SuperclassName;
ClassName.namedConstructor = SuperclassName.otherNamedConstructor;
```
-
-* It is assumed that the standard library includes something that
- matches this pattern:
-
-```dart
-class DispatcherController<T> {
- Dispatcher<T> _dispatcher;
- Dispatcher<T> get dispatcher => _dispatcher;
-
- void add(T data) {
- // ...
- }
-}
-typedef bool Filter<T>(T t);
-typedef void Handler<T>(T t);
-class Dispatcher<T> {
- Dispatcher<T> where(Filter<T> filter) { /*...*/ return this; }
- void listen(Handler<T> handler) { /* ... */ }
-}
-class ExceptionListException<T> extends Exception with IterableMixin<T> {
- List<T> _exceptions;
- void add(T exception) {
- if (_exceptions == null)
- _exceptions = new List<T>();
- _exceptions.add(exception);
- }
- int get length => _exceptions == null ? 0 : _exceptions.length;
- Iterator<T> iterator() => _exceptions.iterator();
-}
-```
« no previous file with comments | « sky/specs/events.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698