waitExit method

  1. @override
Future<int?> waitExit({
  1. int? desiredExitCode,
  2. Duration? timeout,
})
override

Waits this container to naturally exit.

Implementation

@override
Future<int?> waitExit({int? desiredExitCode, Duration? timeout}) async {
  var exitCode = await _waitExitImpl(timeout);
  if (desiredExitCode != null && exitCode != desiredExitCode) return null;
  return exitCode;
}