File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
android/guava/src/com/google/common/util/concurrent
guava/src/com/google/common/util/concurrent Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 4242 * <p>If no backing thread factory is provided, a default backing thread factory is used as if by
4343 * calling {@code setThreadFactory(}{@link Executors#defaultThreadFactory()}{@code )}.
4444 *
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+ *
4549 * @author Kurt Alfred Kluever
4650 * @since 4.0
4751 */
Original file line number Diff line number Diff line change 4242 * <p>If no backing thread factory is provided, a default backing thread factory is used as if by
4343 * calling {@code setThreadFactory(}{@link Executors#defaultThreadFactory()}{@code )}.
4444 *
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+ *
4549 * @author Kurt Alfred Kluever
4650 * @since 4.0
4751 */
You can’t perform that action at this time.
0 commit comments