2025-11-24 22:52:51 +03:00

23 lines
634 B
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.util.thread;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.Executor;
import net.minecraft.util.thread.AbstractConsecutiveExecutor;
import net.minecraft.util.thread.StrictQueue;
public class ConsecutiveExecutor
extends AbstractConsecutiveExecutor<Runnable> {
public ConsecutiveExecutor(Executor dispatcher, String name) {
super(new StrictQueue.QueueStrictQueue(new ConcurrentLinkedQueue<Runnable>()), dispatcher, name);
}
@Override
public Runnable wrapRunnable(Runnable runnable) {
return runnable;
}
}