-
-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Promise do not change to "resolve" mode when calling the function again. #141
Comments
It works as expected. Every call of What is your expected result? If you want this to be resolved
then remove this
|
Hi @constgen, So in this case you will need to call again to same function but with another next_token. The problem, when you will finish iterate all likes and then go out to your resolve you will find yourself stuck in pending mode. What i am trying to figure out, how can i go to .then function, when i need to call again to the same function. Hopefully i succeed to explain myself better. |
For those who have also problem like me, |
Any way it was not an issue of promises themselves. It is recommended to ask such questions in forums, Slack channels, etc. |
I call to "roy" function and then i call again to the same function,
but in the second time i call to my resolve, but resolve it not back and instead it stuck on "pending" state.
Console:
Promise {[[PromiseStatus]]: "pending", [[PromiseValue]]: undefined}
proto
:
Promise
[[PromiseStatus]]
:
"pending"
[[PromiseValue]]
:
undefined
The text was updated successfully, but these errors were encountered: