FutureOr<bool> clearPool() { var pool = _pool.toList(); return pool.map(disposePoolElement).resolveAll().resolveMapped((l) { _pool.clear(); return true; }); }