We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d4bc91 commit e6d8557Copy full SHA for e6d8557
1 file changed
packages/devtools_app_shared/lib/src/service/service_utils.dart
@@ -86,8 +86,8 @@ Future<void> forEachIsolateHelper(
86
VmService vmService,
87
Future<void> Function(IsolateRef) callback,
88
) async {
89
- if ((await vmService.getVM()).isolates case final vmIsolates?
90
- when vmIsolates.isNotEmpty) {
+ final vm = await vmService.getVM();
+ if (vm.isolates case final vmIsolates? when vmIsolates.isNotEmpty) {
91
await [for (final isolate in vmIsolates) callback(isolate)].wait;
92
}
93
0 commit comments