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

Expand the scheduling API to allow synchronous scheduling #99

Open
BomBardyGamer opened this issue Dec 25, 2022 · 0 comments
Open

Expand the scheduling API to allow synchronous scheduling #99

BomBardyGamer opened this issue Dec 25, 2022 · 0 comments

Comments

@BomBardyGamer
Copy link
Member

I am unsure if this is a good idea or not, but the idea is to allow plugins to schedule things synchronously. Though I don't have any use cases in mind as I write this, and I have many good reasons against this, it may still be worth discussing, which is why I'm writing this issue.

Pros:

  • Allows plugins to do some things in sync with the server

Cons:

  • Exposes another implementation detail (that the server has ticking logic and a main thread)
  • The API is meant to be designed in a way that makes users worry less about concurrency issues, since those are a server-side issue, and focus more on the actual thing they want to do.
  • Some coming from Bukkit or Sponge may not understand that most things wouldn't need to be synchronous.
  • Increases the complexity of the scheduling API
  • There are already events that fire on tick start and end, allowing plugins to do actions in sync with the server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant