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
ConstructorsConstructorDescriptionPriorityConsecutiveExecutor
(int p_371706_, Executor p_371186_, String p_371555_) -
Method Summary
Modifier and TypeMethodDescription<Source> CompletableFuture
<Source> scheduleWithResult
(int p_371862_, Consumer<CompletableFuture<Source>> p_371410_) wrapRunnable
(Runnable p_371771_) 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 p_371862_, Consumer<CompletableFuture<Source>> p_371410_)
-