@@ -112,8 +112,9 @@ static Context root() {
112112 *
113113 * <p>This is generally used to create an {@link Executor} which will forward the {@link Context}
114114 * during an invocation to another thread. For example, you may use something like {@code Executor
115- * dbExecutor = Context.wrapTasks(threadPool)} to ensure calls like {@code dbExecutor.execute(()
116- * -> database.query())} have {@link Context} available on the thread executing database queries.
115+ * dbExecutor = Context.taskWrapping(threadPool)} to ensure calls like {@code
116+ * dbExecutor.execute(() -> database.query())} have {@link Context} available on the thread
117+ * executing database queries.
117118 *
118119 * @since 1.1.0
119120 */
@@ -129,7 +130,7 @@ static Executor taskWrapping(Executor executor) {
129130 *
130131 * <p>This is generally used to create an {@link ExecutorService} which will forward the {@link
131132 * Context} during an invocation to another thread. For example, you may use something like {@code
132- * ExecutorService dbExecutor = Context.wrapTasks (threadPool)} to ensure calls like {@code
133+ * ExecutorService dbExecutor = Context.taskWrapping (threadPool)} to ensure calls like {@code
133134 * dbExecutor.execute(() -> database.query())} have {@link Context} available on the thread
134135 * executing database queries.
135136 *
@@ -150,7 +151,7 @@ static ExecutorService taskWrapping(ExecutorService executorService) {
150151 *
151152 * <p>This is generally used to create an {@link ScheduledExecutorService} which will forward the
152153 * {@link Context} during an invocation to another thread. For example, you may use something like
153- * {@code ScheduledExecutorService dbExecutor = Context.wrapTasks (threadPool)} to ensure calls
154+ * {@code ScheduledExecutorService dbExecutor = Context.taskWrapping (threadPool)} to ensure calls
154155 * like {@code dbExecutor.execute(() -> database.query())} have {@link Context} available on the
155156 * thread executing database queries.
156157 *
0 commit comments