Closed pdb-stripe closed 5 months ago
That's normal JVM thread behavior. If you want to shutdown without waiting for a thread, you need make it a daemon thread.
On JVM, Terminal.readLineOrNull
is a wrapper for kotlin.io.readLineOrNull
, so I don't think there's anything to do here on my end.
ack, got it. Thanks for the quick response!
I am looking for a solution that would allow
terminal.readLineOrNull
to fail after some period of time, however this does not seem to work. This seems to occur in some other process? So even if I fail the running process, the JVM doesn't shut down. For example, the given code should fail and return null - and it does, except the process never completes until input is received