Skip to content
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

Better clarify async/await for BeforeEvents privilege system #701

Merged
merged 1 commit into from
Aug 15, 2023

Conversation

stevarino
Copy link
Contributor

Clarify that simply await is not enough to get you to the next tick (and you probably don't want that as it will likely trigger the watchdog). Instead a blocking call must be made with await.

Promise bodies evaluate sequentially with declaration until they hit an await: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise

Clarify that simply await is not enough to get you to the next tick (and you probably don't want that as it will likely trigger the watchdog). Instead a blocking call must be made with await.

Promise bodies evaluate sequentially with declaration until they hit an await: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise
@SirLich SirLich merged commit d6c1589 into Bedrock-OSS:wiki Aug 15, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants