shutdownSharedStdinStream function
Shuts down the shared stdin stream so the process can exit cleanly.
This cancels the underlying subscription to stdin. After this is called, sharedStdinStream should not be used again within the same process.
Implementation
Future<void> shutdownSharedStdinStream() => _sharedStdin.shutdown();