removeInvalidElementsFromPool method

FutureOr<bool> removeInvalidElementsFromPool({
  1. bool checkUsage = true,
})
inherited

Implementation

FutureOr<bool> removeInvalidElementsFromPool({bool checkUsage = true}) {
  FutureOr<List<O>> ret = invalidPoolElements(checkUsage: checkUsage);

  return ret.resolveMapped((l) {
    for (var o in l) {
      ++_invalidatedElementsCount;
      removeFromPool(o);
    }
    return true;
  });
}