kibertoad/undici-retry

[feature] Undici pool suppport.

Closed this issue · 3 comments

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 sounds great! can you send a PR?

Yep. Will do tomorrow.

thanks!