Add timeout flag to devices command, pipe through discovery (#51678)

This commit is contained in:
Jenn Magder
2020-03-16 14:15:00 -07:00
committed by GitHub
parent 0a09b78297
commit 2f216ceee5
23 changed files with 251 additions and 52 deletions

View File

@@ -76,7 +76,7 @@ class LinuxDevices extends PollingDeviceDiscovery {
bool get canListAnything => _linuxWorkflow.canListDevices;
@override
Future<List<Device>> pollingGetDevices() async {
Future<List<Device>> pollingGetDevices({ Duration timeout }) async {
if (!canListAnything) {
return const <Device>[];
}