clearPool method

FutureOr<bool> clearPool()
inherited

Implementation

FutureOr<bool> clearPool() {
  var pool = _pool.toList();

  return pool.map(disposePoolElement).resolveAll().resolveMapped((l) {
    _pool.clear();
    return true;
  });
}