Closed slorber closed 6 years ago
Hi @slorber Have you seen promise-latest? Even though it does't support cancellation of previous promises (would be happy to accept a PR for that!), it should always resolve with the latest returned promise from the wrapped function.
thanks, will take a look
just wanted to let you know I published a lib that use yours as a dependency and built some additional features on top of it.
https://twitter.com/sebastienlorber/status/1040249449250017285
Hi,
For this case:
I'd like to be able to output only one log:
Basically, the first 3 calls I'd like to be able to do:
Does it make any sense to you to support such an usecase? I'd be happy to submit a PR for this.
edit: according to what I understand, as of now you return 4 times the same promise so this means it's not possible to do what I want unless returning 4 distinct promises.