wait method
Implementation
Future<void> wait() async {
try {
await Future.wait(
topLevelTasks.map((e) => e.future).whereType(),
eagerError: true,
);
} catch (e) {
logger.delayed('Error: $e');
killAll();
}
}
Future<void> wait() async {
try {
await Future.wait(
topLevelTasks.map((e) => e.future).whereType(),
eagerError: true,
);
} catch (e) {
logger.delayed('Error: $e');
killAll();
}
}