scrive / pool

A high-performance striped resource pooling implementation for Haskell
Other
18 stars 11 forks source link

Add additional documentation on maximum number of resources #33

Closed jappeace closed 8 months ago

jappeace commented 10 months ago

Fixes #27.

I was looking into what value to set this too when, I encountered #27 and decided to just fix it in place.

jappeace commented 8 months ago

@arybczak could you merge this? my friend @MangoIV also ran into issues with stripes.

MangoIV commented 8 months ago

Honestly it would be good to change the behaviour too, either you don’t set a default stripe number or you don’t err on a wrong number on capabilities. This makes it so you have to either make your max resources depend on the capabilities or set the number of stripes explicitly. if that’s the case you should either set both or none.