dart-sdk/runtime/include
Zachary Anderson 3ea5e13ad7 Reland: [dart:io] Adds waitForEventSync
The only fix needed for relanding is adding _ensureScheduleImmediate
to the list of vm entrypoints in //runtime/vm/compiler/aot/precompiler.cc

Original commit message:

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.

fixes #31102

Change-Id: Id96de46cc5f10e1847045cfafb7cfed6a38bce16
Reviewed-on: https://dart-review.googlesource.com/28920
Reviewed-by: Siva Annamalai <asiva@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
2017-12-12 23:16:50 +00:00
..
dart_api.h Reland: [dart:io] Adds waitForEventSync 2017-12-12 23:16:50 +00:00
dart_mirrors_api.h VM: Re-format to use at most one newline between functions 2017-07-13 08:08:37 -07:00
dart_native_api.h VM: Re-format to use at most one newline between functions 2017-07-13 08:08:37 -07:00
dart_tools_api.h Revert "Revert "1. Remove unused dart debugger API entrypoints which are not used anymore"" 2017-10-04 20:19:22 +00:00