Index: runtime/observatory/lib/src/elements/context_view.dart |
diff --git a/runtime/observatory/lib/src/elements/context_view.dart b/runtime/observatory/lib/src/elements/context_view.dart |
index 2d7cf1207f6db4baa0d52d96afb4e3d2ff923ebd..fd990dc17cf7243109d364a0b7dc56184a6c56df 100644 |
--- a/runtime/observatory/lib/src/elements/context_view.dart |
+++ b/runtime/observatory/lib/src/elements/context_view.dart |
@@ -4,6 +4,7 @@ |
library context_view_element; |
+import 'dart:async'; |
import 'observatory_element.dart'; |
import 'package:observatory/service.dart'; |
import 'package:polymer/polymer.dart'; |
@@ -14,7 +15,7 @@ class ContextViewElement extends ObservatoryElement { |
ContextViewElement.created() : super.created(); |
- void refresh(Function onDone) { |
- context.reload().whenComplete(onDone); |
+ Future refresh() { |
+ return context.reload(); |
} |
} |