- 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.