Pool to support efficient async processing of an
Throw ArgumentError if poolSize <= 0
<3.0.0, and adjust other dependencies.
Update to make the code work with strong-mode clean Zone API.
Required minimum SDK of 1.23.0.
Pool.withResource()to indicate that it takes
() -> FutureOr<T>.
Pool.donegetter that returns the same future returned by
Pool.withResource()could throw a
StateErrorwhen called immediately before closing the pool.
Pool.close(), which forbids new resource requests and releases all releasable resources.
PoolResource.allowRelease(), which allows a resource to indicate that it can be released without forcing it to deallocate immediately.
TimeoutExceptionis now correctly thrown if the pool detects a deadlock.