createPoolElementForced method

FutureOr<C> createPoolElementForced()
inherited

Implementation

FutureOr<O> createPoolElementForced() {
  return createPoolElement(force: true).resolveMapped((o) {
    if (o == null) {
      throw PoolFullError("Can't create a new element `$O`! (forced)");
    }
    return o;
  });
}