We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi if I implement retry with async callback function. Async sleep will not work. But if I do it this way:
.retry(3, (err) => { if (err) { log.error(err, module, 'Retrying request'); // sleep sync // important: don't remove this, async solution will not work!!! Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 2 * 1000); return true; } return false; })
All works. Does this look like good solution to you? Apart of it this is blocking worker thread.
The text was updated successfully, but these errors were encountered:
PR welcome to fix this - perhaps start by adding at test that fails?
Sorry, something went wrong.
No branches or pull requests
Hi if I implement retry with async callback function. Async sleep will not work.
But if I do it this way:
All works. Does this look like good solution to you? Apart of it this is blocking worker thread.
The text was updated successfully, but these errors were encountered: