async 2.0.0.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.done getter that returns the same future returned by Pool.close().Pool.withResource() could throw a StateError when 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.TimeoutException is now correctly thrown if the pool detects a deadlock.