Index: runtime/observatory/lib/src/elements/function_view.dart |
diff --git a/runtime/observatory/lib/src/elements/function_view.dart b/runtime/observatory/lib/src/elements/function_view.dart |
index 35414e502a27ce01f24da62781ffdee4016b277a..5b0d8ecb81b9389788c55399391929ebe9a17fa4 100644 |
--- a/runtime/observatory/lib/src/elements/function_view.dart |
+++ b/runtime/observatory/lib/src/elements/function_view.dart |
@@ -4,6 +4,7 @@ |
library function_view_element; |
+import 'dart:async'; |
import 'observatory_element.dart'; |
import 'package:observatory/service.dart'; |
@@ -14,11 +15,11 @@ class FunctionViewElement extends ObservatoryElement { |
@published ServiceFunction function; |
FunctionViewElement.created() : super.created(); |
- void refresh(var done) { |
- function.reload().whenComplete(done); |
+ Future refresh() { |
+ return function.reload(); |
} |
- void refreshCoverage(var done) { |
- function.refreshCoverage().whenComplete(done); |
+ Future refreshCoverage() { |
+ return function.refreshCoverage(); |
} |
} |