close method

Future<void> close()

Close the queue and clean up resources

Implementation

Future<void> close() async {
  clear();
  await _droppedController.close();
  await _expiredController.close();
}