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

Make task executor lifecycled to platform readiness. #2715

Draft
wants to merge 1 commit into
base: version/7.3.x
Choose a base branch
from

Conversation

wizjany
Copy link
Collaborator

@wizjany wizjany commented Feb 17, 2025

Closes #2459.

Currently untested, just drafting design. Note that the platform list (now map) was/is not threadsafe, which in theory might be problematic if platforms throw ready/unready in multiple threads. Ready/unready should be fixed by #2571 if this is an issue.

*
* @return the executor service
*/
public ListeningExecutorService getExecutorService() {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potentially the platform manager should expose the Lifecycled and the valueOrThrow can be moved up to the WorldEdit class. That would allow things to add listeners to the Lifecycled events if it becomes needed at some point. But also, this isn't API so we can change it at any time if that's needed.

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.

Fabric with worldedit hangs when stopping during shutdown
1 participant