Skip to content

Commit

Permalink
change: delay scheduler thread start
Browse files Browse the repository at this point in the history
  • Loading branch information
ishland committed Jul 26, 2024
1 parent 7f35a22 commit 59d7a0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ public abstract class DaemonizedStatusAdvancingScheduler<K, V, Ctx, UserData> ex

public DaemonizedStatusAdvancingScheduler(ThreadFactory threadFactory) {
this.thread = threadFactory.newThread(this::mainLoop);
this.thread.start();
}

protected Queue<Runnable> createTaskQueue() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class TestSchedulerImpl extends DaemonizedStatusAdvancingScheduler<Long,

public TestSchedulerImpl(ThreadFactory threadFactory) {
super(threadFactory);
this.thread.start();
}

@Override
Expand Down

0 comments on commit 59d7a0c

Please sign in to comment.