[flutter_driver] Remove runUnsynchronized in VMServiceFlutterDriver (#87467)

This commit is contained in:
Nguyen Phuc Loi
2021-08-03 11:45:02 +07:00
committed by GitHub
parent 52bf9dbbd7
commit 31fd0f754f
2 changed files with 34 additions and 12 deletions

View File

@@ -485,18 +485,6 @@ class VMServiceFlutterDriver extends FlutterDriver {
}
}
@override
Future<T> runUnsynchronized<T>(Future<T> Function() action, { Duration? timeout }) async {
await sendCommand(SetFrameSync(false, timeout: timeout));
T result;
try {
result = await action();
} finally {
await sendCommand(SetFrameSync(true, timeout: timeout));
}
return result;
}
@override
Future<void> forceGC() async {
try {