File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
MIT License
2
2
3
- Copyright (c) 2017-2024 How.Programming.Works contributors
3
+ Copyright (c) 2017-2025 How.Programming.Works contributors
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 6
6
7
7
See: [ 4-improved.js] ( https://github.com/HowProgrammingWorks/Pool/blob/master/JavaScript/4-improved.js )
8
8
9
- Signature poolify(factory, min, norm , max)
9
+ Signature poolify(factory, { size , max } )
10
10
- ` factory ` - call to instantiate pool item
11
- - ` min ` - minimum amount to allocate new
12
- - ` norm ` - preallocated amount
11
+ - ` size ` - preallocated amount
13
12
- ` max ` - maximum amount to limit pool
You can’t perform that action at this time.
0 commit comments