An open API service indexing awesome lists of open source software.

https://github.com/howprogrammingworks/pool

Object Pool
https://github.com/howprogrammingworks/pool

object-pool pattern pool

Last synced: about 2 months ago
JSON representation

Object Pool

Awesome Lists containing this project

README

        

# Object Pool and Asyncronous Pool

[![Фабрики и пулы объектов](https://img.youtube.com/vi/Ax_mSvadFp8/0.jpg)](https://www.youtube.com/watch?v=Ax_mSvadFp8)

[![Асинхронный пул для worker thread pool в Node.js](https://img.youtube.com/vi/Jj5KZRq4wYI/0.jpg)](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