easy-object-pool
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "easy-object-pool", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
@@ -44,5 +44,5 @@ # Easy Object Pool | ||
| :--- | :--- | :--- | :--- | :--- | | ||
| `factoryMethod` | `(...params: any[]) => T` | ✅ | | factory method to instantiate a instance | | ||
| `initializationMethod` | `(instance: T, ...params: any[]) => void` | | | initialize a instance when get a instance | | ||
| `disposeMethod` | `(instance: T, ...params: any[]) => void` | | | call if clean instances | | ||
| `factoryMethod` | (...params: any[]) => T | ✅ | | factory method to instantiate a instance | | ||
| `initializationMethod` | (instance: T, ...params: any[]) => void | | | initialize a instance when get a instance | | ||
| `disposeMethod` | (instance: T, ...params: any[]) => void | | | call if clean instances | | ||
| `preInstantiationQuantity` | `number` | | `0` | instantiate some instances at ahead | | ||
@@ -57,4 +57,4 @@ | `limit` | `number` | | `0` | set a limit quantity of pool | | ||
| :--- | :--- | :--- | | ||
| `getAInstance` | `(...params: any[]) => T` | get a instance | | ||
| `getAInstance` | (...params: any[]) => T | get a instance | | ||
| `recycleInstance` | (instance: T | T[]) => void | recycle a instance or instances | | ||
| `cleanAllInstance` | `() => void` | clean all instances | | ||
| `cleanAllInstance` | () => void | clean all instances | |
9909
10
217