runDeviceBusyTask<V> method
Set the device as busy during the duration of the given async task.
Implementation
Future<V> runDeviceBusyTask<V>(Future<V> task) async {
try {
setDeviceBusy(true);
return await task;
} finally {
setDeviceBusy(false);
}
}