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

@@ -185,7 +185,7 @@ class WebDevices extends PollingDeviceDiscovery {
bool get canListAnything => featureFlags.isWebEnabled;
@override
Future<List<Device>> pollingGetDevices() async {
Future<List<Device>> pollingGetDevices({ Duration timeout }) async {
return <Device>[
if (_chromeIsAvailable)
_webDevice,