remove method

void remove(
  1. String tag, {
  2. TWPriority priority = TWPriority.middle,
})

Removes the future-returning closure from the queue. It will be removed from the queue if it has not yet been executed.

Implementation

void remove(
  String tag, {
  TWPriority priority = TWPriority.middle,
}) {
  _nextCycle.removeWhere((item) => item.tag == tag);
  activeItemTags.remove(tag);
  _updateRemainingItems();
}