pooled<R> method
Makes a call using a Pool
pool
: ThePool
fn
: The delegate to run in thePool
Returns a Future for the completion of the delegate
Implementation
Future<R> pooled<R>(Pool pool, FutureOr<R> Function() fn) {
return pool.withResource(fn);
}