Links
A thread that reads input from stdin and invokes a callback function for each line read.
Initialize the InputThread.
callback (Callable) – A function that will be called with each line of input read from stdin.
Callable
callback (Callable[[bytes], None])
None
Continuously reads lines from standard input and passes them to the callback function until thread is terminated.