How to manage thread pool with promise

when I use completable future i can use threadpool excutor for thread management and reuse.
public static CompletableFuture runAsync(Runnable runnable,
Executor executor) {
return asyncRunStage(screenExecutor(executor), runnable);
}
So when using completefuture promise is there a way for me to manage threads?
Thanks.

Don’t use CompletableFuture in your workflow code. This applies to any native threads and synchronization primitives. Rather use SDK APIs provided by Temporal.
So instead of using Future and CompletableFuture use Promise and CompletablePromise.

This docs page includes further info on workflow code constraints.