waitForConnection method
Implementation
Future<void> waitForConnection() async {
collection.logger.info("Waiting for connection...");
while (!isConnected) {
await Future<void>.delayed(const Duration(milliseconds: 100));
}
return;
}
Future<void> waitForConnection() async {
collection.logger.info("Waiting for connection...");
while (!isConnected) {
await Future<void>.delayed(const Duration(milliseconds: 100));
}
return;
}