waitExit method
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;
}