Package net.minecraft.util.thread
Interface TaskScheduler<R extends Runnable>
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
AbstractConsecutiveExecutor
,BlockableEventLoop
,ConsecutiveExecutor
,DedicatedServer
,GameTestServer
,IntegratedServer
,Minecraft
,MinecraftServer
,PriorityConsecutiveExecutor
,ReentrantBlockableEventLoop
,ServerChunkCache.MainThreadExecutor
,SoundEngineExecutor
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
name()
void
default <Source> CompletableFuture
<Source> scheduleWithResult
(Consumer<CompletableFuture<Source>> pResultConsumer) static TaskScheduler
<Runnable> wrapExecutor
(String pName, Executor pExecutor) wrapRunnable
(Runnable pRunnable)
-
Method Details
-
name
String name() -
schedule
-
close
default void close()- Specified by:
close
in interfaceAutoCloseable
-
wrapRunnable
-
scheduleWithResult
default <Source> CompletableFuture<Source> scheduleWithResult(Consumer<CompletableFuture<Source>> pResultConsumer) -
wrapExecutor
-