Interacting with root actor through user console input

Is there a nice idiomatic way to send messages to the root actor through user input at the console. Ideally I don’t want a thread dedicated to just sitting at the console waiting for input.


I’m not aware of any way to read standard in without blocking since it is made available to the JVM through the old blocking Java InputStream API.

I think that whichever abstraction you’d use turning it into something async would still have to block on reading it, so just blocking the main thread on reading it after starting the actor system will be as good as any other solution.