stopLongTaskDetection method
Implementation
@visibleForTesting
Future<void> stopLongTaskDetection() async {
if (_detectingLongTasks) {
_detectingLongTasks = false;
await _longTaskDetectorFuture;
_longTaskDetectorFuture = null;
}
}
@visibleForTesting
Future<void> stopLongTaskDetection() async {
if (_detectingLongTasks) {
_detectingLongTasks = false;
await _longTaskDetectorFuture;
_longTaskDetectorFuture = null;
}
}