Constructor
new Pool(object)
Constructor
Parameters:
| Name | Type | Description |
|---|---|---|
object |
* | object to alloc in the pool |
Methods
alloc() → {*}
Allocate space in the pool
Returns:
- Type
- *
collect() → {Pool}
Collect all objects in the pool
and clear current stats
Returns:
- Type
- Pool
free(obj) → {Pool}
Free space in the pool by
returning an object to it
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
* |
Returns:
- Type
- Pool