async_tracker 0.1.0 async_tracker: ^0.1.0 copied to clipboard
Tracks async callbacks (e.g. microtask, Future, Stream, Timer) and indicates when any of these has completed their executions. It can be used to track and react on async event chains.
import 'package:async_tracker/async_tracker.dart';
main() {
final tracker = new AsyncTracker();
tracker.addListener(() {
print('tracker has detected an execution');
});
tracker.run(() {
// do any async stuff
});
}