import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.TimeUnit;
public final class JavaFxScheduler extends Scheduler {
private static final JavaFxScheduler INSTANCE = new JavaFxScheduler();
<BUG>public static JavaFxScheduler getInstance() {
return INSTANCE;
}
private final Queue<Runnable> queue = new ConcurrentLinkedQueue<Runnable>();
private int wip;</BUG>
@Override

import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.TimeUnit;
public final class JavaFxScheduler extends Scheduler {
private static final JavaFxScheduler INSTANCE = new JavaFxScheduler();
private final Queue<Runnable> queue = new ConcurrentLinkedQueue<>();
private int wip;
@Override
