Package net.minecraft.util.thread
Class PriorityConsecutiveExecutor
java.lang.Object
net.minecraft.util.thread.AbstractConsecutiveExecutor<StrictQueue.RunnableWithPriority>
net.minecraft.util.thread.PriorityConsecutiveExecutor
- All Implemented Interfaces:
AutoCloseable
,Runnable
,ProfilerMeasured
,TaskScheduler<StrictQueue.RunnableWithPriority>
public class PriorityConsecutiveExecutor
extends AbstractConsecutiveExecutor<StrictQueue.RunnableWithPriority>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.util.thread.AbstractConsecutiveExecutor
AbstractConsecutiveExecutor.Status
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<Source> CompletableFuture
<Source> scheduleWithResult
(int pPriority, Consumer<CompletableFuture<Source>> pResultConsumer) wrapRunnable
(Runnable pRunnable) Methods inherited from class net.minecraft.util.thread.AbstractConsecutiveExecutor
close, hasWork, name, profiledMetrics, run, runAll, schedule, size, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.util.thread.TaskScheduler
scheduleWithResult
-
Constructor Details
-
PriorityConsecutiveExecutor
-
-
Method Details
-
wrapRunnable
-
scheduleWithResult
public <Source> CompletableFuture<Source> scheduleWithResult(int pPriority, Consumer<CompletableFuture<Source>> pResultConsumer)
-