run static method
Runs work after the response of the current request is sent.
Outside a request, or when it is off, work runs soon.
Implementation
static void run(FutureOr<void> Function() work) {
Object? pending = Zone.current[_key];
if (pending is _Pending && !pending.sent) {
pending.add(work);
} else {
Timer.run(() => _call(work));
}
}