new ObjectPool(T)
Parameters:
Name | Type | Description |
---|---|---|
T |
function |
- Source:
Methods
-
aquire()
-
Get a pooled object
- Source:
-
expand(Amount)
-
Parameters:
Name Type Description Amount
Number of new objects to allocate for this pool. - Source:
-
release()
-
Return an object back to the pool.
- Source:
-
totalFree() → {Number}
-
- Source:
Returns:
Total number of objects currently available.- Type
- Number
-
totalSize() → {Number}
-
- Source:
Returns:
Total amount of allocated objects (available and in-use).- Type
- Number
-
totalUsed() → {Number}
-
- Source:
Returns:
Total number of objects currently in-use.- Type
- Number