You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a use case where I don't know the actually value of amount for giving to removeTokens method until I've sent the request(AWS DynamoDB in my case).
Here is the pseudo code to explain what I mean:
letpreviousConsumedTokens=0asyncfunctionfoo(){for(leti=0;i<10;i++){awaitbucket.removeTokens(previousConsumedTokens)previousConsumedTokens=awaitsendRequest()}}foo()// run only one time will work// call `foo` multiple times may not work,// because the `previousConsumedTokens` may not be the "real" previousConsumedTokens.foo()
Hi, thanks for your efforts to this lib.
I have a use case where I don't know the actually value of amount for giving to
removeTokens
method until I've sent the request(AWS DynamoDB in my case).Here is the pseudo code to explain what I mean:
So the API may looks like this:
if you are OK for this feature request, I can send a PR for this, what do you think?
The text was updated successfully, but these errors were encountered: