LoopEventsExtension extension

Extension providing additional loop event methods for GetInterface.

on

Methods

asap<T>(T computation(), {bool condition()?}) FutureOr<T>
Executes the given computation as soon as possible, optionally based on a condition.
toEnd<T>(FutureOr<T> computation()) Future<T>
Delays the execution of the given computation until the end of the event loop.