Skip to content

Commit

Permalink
⚡ Use virtual threads in CleanerUtils
Browse files Browse the repository at this point in the history
  • Loading branch information
ujibang committed Sep 27, 2024
1 parent 0887562 commit 54c6a7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commons/src/main/java/org/restheart/utils/CleanerUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@

public class CleanerUtils {
private static CleanerUtils instance = null;
private Cleaner cleaner;
private final Cleaner cleaner;

private CleanerUtils() {
this.cleaner = Cleaner.create();
this.cleaner = Cleaner.create(Thread.ofVirtual().factory());
}

public static CleanerUtils get() {
Expand Down

0 comments on commit 54c6a7a

Please sign in to comment.