On Wednesday, 4 November 2015 at 16:49:59 UTC, JR wrote:
[...]
And my indentation and brace-balancing there is wrong. Shows how dependent I've become on syntax highlighting.
import core.time;
import std.concurrency;
bool received = receiveTimeout(1.seconds,
writeln("conn: received ws message: " ~ msg);
}
);
if (received) {
writeln("received!");
}
else {
writeln("timed out...");
// stuff?
}
