-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
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
Bug: batch set #47
Comments
Since they're all modifying the file, I suggest not running them concurrently with Promise.all, but sequentially using https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Statements/for-await...of |
I just tried two paths and no luck with batching things up, cmd line stuff works fine # 1
# 2
|
hostile.set is not an async function and does not return a promise, so 'await hostile.set' will not actually wait until the get/set cycle is complete. (it would probably be a nice addition to the API though) you will need to explicitly wait for the callback to execute if you want to forEach around it. something like
|
thank you for point out things, thank you for code snippet but this also did not do the trick. just writes one line at time. |
in host file:
only add one line
in host file:
only add one line
The text was updated successfully, but these errors were encountered: