pooled<R> method

Future<R> pooled<R>(
  1. Pool pool,
  2. FutureOr<R> fn()
)
inherited

Makes a call using a Pool

  • pool: The Pool
  • fn: The delegate to run in the Pool

Returns a Future for the completion of the delegate

Implementation

Future<R> pooled<R>(Pool pool, FutureOr<R> Function() fn) {
  return pool.withResource(fn);
}