W3cubDocs

/Dart 2

scheduleMicrotask method

void scheduleMicrotask (void callback())

Runs callback asynchronously in this zone.

The global scheduleMicrotask delegates to the current zone's scheduleMicrotask. The root zone's implementation interacts with the underlying system to schedule the given callback as a microtask.

Custom zones may intercept this operation (for example to wrap the given callback).

Implementation

void scheduleMicrotask(void callback());

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-async/Zone/scheduleMicrotask.html