You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to create a pool with the following options I expect to have 1 object available at all times and the object not to be destroyed when it times out.
Instead the object is destroyed when the timeout is hit. This happens since the Pool constructor will assume the min should always be at least 1 less than the max. The options above end up resulting in a max of 1 and a min of 0
A simple solution could be to remove the max-1 assumption for the min value.
The text was updated successfully, but these errors were encountered:
When trying to create a pool with the following options I expect to have 1 object available at all times and the object not to be destroyed when it times out.
Instead the object is destroyed when the timeout is hit. This happens since the Pool constructor will assume the
min
should always be at least 1 less than themax
. The options above end up resulting in amax
of1
and amin
of0
A simple solution could be to remove the
max-1
assumption for themin
value.The text was updated successfully, but these errors were encountered: