https://github.com/howprogrammingworks/pool
Object Pool
https://github.com/howprogrammingworks/pool
object-pool pattern pool
Last synced: 8 months ago
JSON representation
Object Pool
- Host: GitHub
- URL: https://github.com/howprogrammingworks/pool
- Owner: HowProgrammingWorks
- License: mit
- Created: 2018-01-05T20:52:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-03-08T21:33:01.000Z (10 months ago)
- Last Synced: 2025-03-31T12:58:11.284Z (9 months ago)
- Topics: object-pool, pattern, pool
- Language: JavaScript
- Homepage: https://www.youtube.com/TimurShemsedinov
- Size: 61.5 KB
- Stars: 8
- Watchers: 5
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Object Pool and Asyncronous Pool
[](https://www.youtube.com/watch?v=Ax_mSvadFp8)
[](https://www.youtube.com/watch?v=Jj5KZRq4wYI)
See: [4-improved.js](https://github.com/HowProgrammingWorks/Pool/blob/master/JavaScript/4-improved.js)
Signature poolify(factory, { size, max })
- `factory` - call to instantiate pool item
- `size` - preallocated amount
- `max` - maximum amount to limit pool