Skip to content

Concurrent Tasks

jtljac edited this page Sep 24, 2023 · 2 revisions

Minecraft is not really that multithreaded. Dat Modding API Provides a standard interface to grant mods access to a common thread pool for executing code concurrently.

// Very simple abstraction around a thread pool // Exposes submitting callables (with futures and runnables) // Supports scheduling callables and runables to occur after a delay // Supports scheduling a callable to run at a fixed rate with a given period // runOnMainThread for running code in the context of the serverThread

Clone this wiki locally