How do I create an AsyncFile object for stdin (cross platform) since stdin does not have a file name in Linux?
I need to do async io interlacing stdin input and a gui event loop.
Using stdin.readLine() blocks the event loop.
A related question is how can one run a gui event loop (cross platform) using Futures and async instead of a gui-event only while loop?
How do I create an AsyncFile object for stdin (cross platform) since stdin does not have a file name in Linux?
AsyncFile for stdin is currently not supported. You will need to use spawn as I've done here: https://github.com/dom96/nim-in-action-code/blob/master/Chapter3/ChatApp/src/client.nim#L38
stdin does not have a file name in Linux?
I am sorry, but that is not correct. There is "/dev/stdin".