ScheduleMicrotaskHandler typedef Null safety
- Zone self,
- ZoneDelegate parent,
- Zone zone,
- void f(
The type of a custom Zone.scheduleMicrotask implementation function.
Receives the Zone that the handler was registered on as
a delegate forwarding to the handlers of
self's parent zone as
and the current zone where the error was uncaught as
which will have
self as a parent zone.
f is the function which was
passed to Zone.scheduleMicrotask of
The custom handler can choose to replace the function
with one that does something before, after or instead of calling
and then call
or it can implement its own microtask scheduling queue, which typically
still depends on
parent.scheduleMicrotask to as a way to get started.
typedef void ScheduleMicrotaskHandler( Zone self, ZoneDelegate parent, Zone zone, void f());