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
Hi guys, I have been using this library for a while and I have to say it's very easy to work with it.
I have a concern about cancellable promises, specifically the behaviour of a chain of promises when a promise in the middle has been cancelled.
Let's say we have:
If, for example, C gets cancelled while A and B resolve correctly, I'm expecting that cancelled is printed out, but what I observe is that the sequence gets stuck in pending state.
This behaviour can be checked with the following test that recalls the ones provided with the library, which fails for timeout:
Hi guys, I have been using this library for a while and I have to say it's very easy to work with it.
I have a concern about cancellable promises, specifically the behaviour of a chain of promises when a promise in the middle has been cancelled.
Let's say we have:
If, for example, C gets cancelled while A and B resolve correctly, I'm expecting that
cancelled
is printed out, but what I observe is that the sequence gets stuck inpending
state.This behaviour can be checked with the following test that recalls the ones provided with the library, which fails for timeout:
If I'm not misinterpreting the situation, I will open a PR with a suggested fix, otherwise please let me know the reasoning behind this behaviour.
Thanks,
AT
The text was updated successfully, but these errors were encountered: