Help with Concurrency
    JR via Digitalmars-d-learn 
    digitalmars-d-learn at puremagic.com
       
    Wed Nov  4 08:53:27 PST 2015
    
    
  
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?
     }
    
    
More information about the Digitalmars-d-learn
mailing list