Seeking Elegant Solution for Handling Promise Failures in TypeScript Code
Hello everyone! I've been working on some code that looks like this:
The idea is to prevent the generator from short-circuiting if the promise fails.
I'm curious—do you know if there's a more direct or elegant way to achieve this? Any tips or suggestions would be super appreciated!
The idea is to prevent the generator from short-circuiting if the promise fails.
I'm curious—do you know if there's a more direct or elegant way to achieve this? Any tips or suggestions would be super appreciated!
