waitForConnection method

Future<void> waitForConnection()

Implementation

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