Closed joelgriffith closed 7 years ago
Forgot to add that this new interface also "retries" since a queue is being used. This allows us to do some cool things like not need pageload
rarely (since a pageload will trigger an action failure, and it'll re-run)
This makes it so a workflow like this:
Becomes
This new interface is still bw compatible with the old, however I had to hand-roll my own
then
which executes the actions. Internally this just queues actions until thethen
member is called. The ONLY gotcha is that anything that doesnew Chrome
can't return it inside a promise-chain, otherwise thethen
method will be called and return undefined.Thanks @mute for the tests, they helped tremendously here