The only thing you can do is spawn a new thread and then use a rather 
inefficient busy loop to poll its completion. This is how I did stdin reading 
in Chapter 3 of Nim in Action, you can use it as an example: 
<https://github.com/dom96/nim-in-action-code/blob/master/Chapter3/ChatApp/src/client.nim#L42>

That said, I wouldn't recommend this. Hopefully soon we will have a better 
solution to this.

Reply via email to