mirror of
https://github.com/Minestom/Minestom.git
synced 2024-06-29 07:55:07 +02:00
17 lines
438 B
Java
17 lines
438 B
Java
package net.minestom.server.io;
|
|
|
|
import net.minestom.server.MinecraftServer;
|
|
import net.minestom.server.utils.thread.MinestomThread;
|
|
|
|
import java.util.concurrent.ExecutorService;
|
|
|
|
public class IOManager {
|
|
|
|
private static final ExecutorService IO_POOL = new MinestomThread(MinecraftServer.THREAD_COUNT_IO, MinecraftServer.THREAD_NAME_IO);
|
|
|
|
public static void submit(Runnable runnable) {
|
|
IO_POOL.execute(runnable);
|
|
}
|
|
|
|
}
|