onilabs

Concurrent Programming 3/3

"It is more difficult to develop applications using asynchronous mechanisms due to the separation in time and space between operation initiation and completion" (boost::asio docs)
  if (waitforKeypress() == "q") ...; else ...;

  display(doHttpGetRequest('http://bbc.com'));

  print("countdown:");
  for (var i=10; i>0; --i) {
    wait(1000);
    print(i);
  }