CompletableFuture<StackFrame> (ThreadReference thread, int index) { if (thread instanceof ThreadReferenceImpl && isAsyncEnabled()) { return reschedule(((ThreadReferenceImpl)thread).frameAsync(index)); } return toCompletableFuture(() -> thread.frame(index)); }