Alternative (Tip/Suggestion) #15
Replies: 1 comment 3 replies
-
Hey, @jimmywarting. This is a great suggestion! The practical difference would be the array signature, as I'm not sure if I like the never-rejecting semantics of That being said, I'd recommend using
In any other case I'd still resort to |
Beta Was this translation helpful? Give feedback.
-
I saw someone using this library and it was confusing to me at first glance of what it was doing.
Then i figured: Is
until
needed, are there alternative solutions? And there is...This dose not do exactly the same thing until is doing, but you won't need any try/catch or dependencies with the Settle method.
the output is either:
So the signature changes a bit. instead of checking for an error object u would have to check if status is fulfilled or rejected or looking for/if the reason property exist
Beta Was this translation helpful? Give feedback.
All reactions