dart-sdk/sdk
Zachary Anderson 2aed87a133 [dart:io] Adds waitForEventSync
Adds a top-level call waitForEventSync to dart:io that blocks the
thread an Isolate is running on until messages are available.
Before the thread blocks, the microtask queue is drained.
Before waitForEventSync returns, all messages are handled.

Lifting this up from a comment:

This is apropos of the request that nweiz@ sent to the mailing list a
couple weeks back. I'm not sure we should land this. We certainly
shouldn't land it without some annotations that will make the analyzer
complain a lot in most configurations, but I don't know what those
annotations are.

Change-Id: If8286f4525994a162dd4f4563fefccb9d0984f7c
Reviewed-on: https://dart-review.googlesource.com/25281
Commit-Queue: Zach Anderson <zra@google.com>
Reviewed-by: Siva Annamalai <asiva@google.com>
2017-12-12 19:12:58 +00:00
..
bin Fix paths in sdk/bin/dartdevk.bat 2017-12-12 06:51:27 +00:00
lib [dart:io] Adds waitForEventSync 2017-12-12 19:12:58 +00:00
api_readme.md fix links in readme 2015-08-20 13:17:34 -07:00
BUILD.gn compile and ship the front_end blaze worker entrypoint as a snapshot 2017-11-29 23:40:35 +00:00