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>
-
Constructor Summary
ConstructorsConstructorDescriptionPriorityConsecutiveExecutor(int priorityCount, Executor executor, String name) -
Method Summary
Modifier and TypeMethodDescription<Source> CompletableFuture<Source> scheduleWithResult(int priority, Consumer<CompletableFuture<Source>> futureConsumer) wrapRunnable(Runnable runnable) Methods inherited from class AbstractConsecutiveExecutor
close, hasWork, name, profiledMetrics, run, runAll, schedule, size, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface TaskScheduler
scheduleWithResult
-
Constructor Details
-
PriorityConsecutiveExecutor
-
-
Method Details
-
wrapRunnable
-
scheduleWithResult
public <Source> CompletableFuture<Source> scheduleWithResult(int priority, Consumer<CompletableFuture<Source>> futureConsumer)
-