Closed rhaksw closed 4 years ago
Hi, thank you for trying it out.
It might be convenient to retry fetchUrl jobs that fail Could/should this be implemented with Bottleneck as follows?
Yup the code looks good, but you don't have to throw a BottleneckError. Any kind of error will work fine. BottleneckError is what Bottleneck throws to let you, the user, tell apart which errors came from your code and which errors came from Bottleneck itself.
Also, do people ever use Bottleneck in extensions?
Yup! I know it's used in at least a few, including one in VS Code (which uses Chromium under the hood).
Thank you! I will give this a shot soon.
Hi, I'm evaluating Bottleneck and have this question after reading the readme.
Sometimes fetch fails, and I catch that error, as follows,
It might be convenient to retry fetchUrl jobs that fail. Could/should this be implemented with Bottleneck as follows?
Also, do people ever use Bottleneck in extensions? I'm wondering whether or not it's a good idea to use this in an extension with a persistent background page.