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
@@ -15,7 +15,6 @@ public class Pool<T> : IPool<T> where T : class
15
15
privatereadonlyConcurrentBag<T>_items;
16
16
privatereadonlyobject_lock=new();
17
17
privatereadonlyFunc<T>_factory;
18
-
privatereadonlyint_createIncrement;
19
18
privatereadonlyint_maxPoolSize;
20
19
privateint_currentSize;
21
20
privatebool_disposed;
@@ -28,17 +27,15 @@ public class Pool<T> : IPool<T> where T : class
28
27
/// <param name="shrinkInterval">Time interval to shrink unused pools and disposed them, then reset to initPoolSize, default value is 30 min on null param</param>
29
28
/// <param name="initPoolSize">The initial number of objects to be created and added to the pool. Default is 100.</param>
30
29
/// <param name="maxPoolSize">The maximum number of objects that can be in the pool. Default is <see cref="int.MaxValue"/>.</param>
31
-
/// <param name="createIncrement">When there is no object on pool, how many new item should create</param>
32
30
/// <exception cref="ArgumentNullException">Thrown when <paramref name="factory"/> is null.</exception>
33
31
/// <exception cref="ArgumentOutOfRangeException">Thrown when <paramref name="initPoolSize"/> is negative or <paramref name="maxPoolSize"/> is less than or equal to zero.</exception>
34
32
/// <exception cref="ArgumentOutOfRangeException">Thrown when <paramref name="shrinkInterval"/> is less than 30 min (just if not null)</exception>
35
33
/// <exception cref="ArgumentException">Thrown when <paramref name="maxPoolSize"/> is less than <paramref name="initPoolSize"/>.</exception>
0 commit comments