Class McpSchedulers
java.lang.Object
eu.mrapik.minecraftservermcp.internal.McpSchedulers
Shared Reactor
Scheduler for blocking file I/O used by filesystem tools, so work stays off the game thread
without unbounded thread creation.
Uses Executors.newVirtualThreadPerTaskExecutor() when the JVM supports virtual threads; otherwise falls back
to Reactor's Schedulers.boundedElastic().
-
Method Summary
Modifier and TypeMethodDescriptionstatic reactor.core.scheduler.SchedulerShared scheduler for blocking filesystem operations off the main thread.
-
Method Details
-
blockingIo
public static reactor.core.scheduler.Scheduler blockingIo()Shared scheduler for blocking filesystem operations off the main thread.- Returns:
- shared scheduler for blocking filesystem work
-