Pool timeout so that pending requests continue to time out after an earlier batch of requests has already timed out.Pool.forEach to ensure all workers complete before the stream is closed, even on error or cancellation.PoolResource.allowRelease callback throws.dart-lang/tools monorepo.repository field.>=2.12.0-0 <3.0.0 based on beta release guidelines.forEach: Avoid await null if the Stream is not paused. Improves trivial benchmark by 40%.Add forEach to Pool to support efficient async processing of an Iterable.
Throw ArgumentError if poolSize <= 0
<3.0.0, and adjust other dependencies.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.