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

Remove async code where it isn't needed #159

Merged
merged 2 commits into from
Oct 24, 2020
Merged

Remove async code where it isn't needed #159

merged 2 commits into from
Oct 24, 2020

Conversation

garronej
Copy link
Collaborator

@garronej garronej commented Oct 24, 2020

Hello,

This PR is for removing async codes and promises nesting where it isn't needed/ does nothing.
I didn't change what the code actually does. Now that the code is more readable you might be
able to spot shortcomings in the error management. I leave it up to you to see how you would like to address it.

@filfat I also implemented what we talked about in issue#158.

Now if there is an async callback that sets the event to be canceled, we will actually be able the throw the error.

image

Next, once this PR is merged, I will make you a proposal on how to cleanly version the EventManager API in an other PR :octocat:

Best regards,

@garronej
Copy link
Collaborator Author

Hold on I will resolve the conflict from your commit from 10min ago.

@filiphsandstrom filiphsandstrom merged commit b3e9c84 into JSPrismarine:master Oct 24, 2020
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.

None yet

1 participant