Closed vixez closed 2 years ago
Hey, thanks for the contribution, I'll take a closer look soon, but in the meantime:
bloc_concurrency
package, but just some thoughts about it.This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I needed a way to make requests run in a sequence, not parallel. This is more explained in the issue here.
The changes here introduce a
Pool
, so you can limit the amount of active requests by settingmaxActiveRequests
. By default this is 32, feel free to change this or skip the pool altogether if not set.This code for example will make sure all requests, including for example retrieving a token in a
RetryPolicy
will run one by one.To get a token in
RetryPolicy
I use a seperateInterceptedClient
which is also limited to one request.