- Fix the type annotation of
Pool.withResource() to indicate that it takes
() -> FutureOr<T>.
- Add a
Pool.done getter that returns the same future returned by
- Fix a bug in which
Pool.withResource() could throw a
StateError when called immediately before closing the pool.
- Fix strong mode warnings and add generic method annotations.
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.