waitReady method

  1. @override
Future<bool> waitReady()
override

Waits this container to start and be ready.

Implementation

@override
Future<bool> waitReady() async {
  if (isReady) return true;

  switch (outputReadyType) {
    case OutputReadyType.stdout:
      return this.stdout!.waitReady();
    case OutputReadyType.stderr:
      return this.stderr!.waitReady();
    case OutputReadyType.any:
      return this.stdout!.waitAnyOutputReady();
    case OutputReadyType.startsReady:
      return true;
    default:
      return this.stdout!.waitReady();
  }
}