SGrondin / bottleneck

Job scheduler and rate limiter, supports Clustering
MIT License
1.82k stars 75 forks source link

update type for wrap #146

Open olehcambel opened 4 years ago

olehcambel commented 4 years ago

I changed types for method wrap and it seems to work in the same way and without overloading. If you like it, I can write for the rest of methods. However, I don't know how to handle T extends any[] - to exclude any

xcao65 commented 4 years ago

I guess T extends any[] is fine.