File tree 2 files changed +8
-0
lines changed
android/guava/src/com/google/common/util/concurrent
guava/src/com/google/common/util/concurrent
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 42
42
* <p>If no backing thread factory is provided, a default backing thread factory is used as if by
43
43
* calling {@code setThreadFactory(}{@link Executors#defaultThreadFactory()}{@code )}.
44
44
*
45
+ * <p><b>Java 21+ users:</b> consider using the {@code Thread.Builder} interface instead. E.g.,
46
+ * instead of {@code new ThreadFactoryBuilder().setPriority(priority).setDaemon(false).build()}, use
47
+ * {@code Thread.ofPlatform().priority(priority).daemon(false).factory()}.
48
+ *
45
49
* @author Kurt Alfred Kluever
46
50
* @since 4.0
47
51
*/
Original file line number Diff line number Diff line change 42
42
* <p>If no backing thread factory is provided, a default backing thread factory is used as if by
43
43
* calling {@code setThreadFactory(}{@link Executors#defaultThreadFactory()}{@code )}.
44
44
*
45
+ * <p><b>Java 21+ users:</b> consider using the {@code Thread.Builder} interface instead. E.g.,
46
+ * instead of {@code new ThreadFactoryBuilder().setPriority(priority).setDaemon(false).build()}, use
47
+ * {@code Thread.ofPlatform().priority(priority).daemon(false).factory()}.
48
+ *
45
49
* @author Kurt Alfred Kluever
46
50
* @since 4.0
47
51
*/
You can’t perform that action at this time.
0 commit comments