stopLongTaskDetection method

  1. @visibleForTesting
Future<void> stopLongTaskDetection()

Implementation

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