Skip to content

Add Executors API#60

Open
SpaceWalkerRS wants to merge 4 commits intogen2from
executors
Open

Add Executors API#60
SpaceWalkerRS wants to merge 4 commits intogen2from
executors

Conversation

@SpaceWalkerRS
Copy link
Copy Markdown
Member

This API ports some functionality from 1.14 back to 1.13.2 and below.

  • Minecraft and MinecraftServer implement java.util.concurrent.Executor.
  • Both main thread executors schedule tasks to be executed at the start of each tick.

The second feature is already present in Vanilla in 1.7.6-1.7.10 and 14w07a-1.13.2 (though not through java.util.concurrent.Executor) but is backported all the way to Indev 0.31.20100128-2304.

The API also provides a background executor service that can be used to execute tasks asynchronously. While this is generally useful, it was added with async resource reloading in mind.

@SpaceWalkerRS SpaceWalkerRS added the enhancement New feature or request label Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant