On Tuesday, 13 November 2018 at 13:52:57 UTC, Sobaya wrote:
But I don't know how many lines are sent from the server for an input, so readln function blocks.
Read lines in another thread and send them to the main thread with std.concurrency.
Kagamin via Digitalmars-d-learn Wed, 14 Nov 2018 00:51:03 -0800
On Tuesday, 13 November 2018 at 13:52:57 UTC, Sobaya wrote:
But I don't know how many lines are sent from the server for an input, so readln function blocks.
Read lines in another thread and send them to the main thread with std.concurrency.