Skip to content

Commit 9c7ddce

Browse files
committed
Update newEventLoopScheduledThread method to use VirtualThreadScheduler for thread creation
1 parent 5b82ee2 commit 9c7ddce

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/io/netty/loom/NettyScheduler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public void onContinue(Thread.VirtualThreadTask virtualThreadTask) {
118118
}
119119

120120
static Thread newEventLoopScheduledThread(Runnable task, SharedRef sharedRef) {
121-
return ensureInstalled().newThread(task, sharedRef);
121+
return Thread.VirtualThreadScheduler.newThread(task, sharedRef);
122122
}
123123

124124
public static boolean perCarrierPollers() {

0 commit comments

Comments
 (0)