[feature] Undici pool suppport.
Closed this issue · 3 comments
SkeLLLa commented
Hi. Alongside with Client
undici has Pool
. It has pretty much similar interface with Client
. So likely adding type Pool
to sendWithRetry
call first argument will make it compatible with undici pools as well.
WDYT?
PS: Or maybe it's better to create an interface like IClientLike
which will only require request
function that is actually used under the hood. Then either Client
, Pool
or other thing could be passed.
SkeLLLa commented
Yep. Will do tomorrow.
kibertoad commented
thanks!