presto-cli/src/main/java/io/prestosql/cli/QueryPreprocessor.java/QueryPreprocessor/executeInNewThread
class QueryPreprocessor:    private static <T> Future<T> executeInNewThread(String threadName, Callable<T> callable)
    {
        FutureTask<T> task = new FutureTask<>(callable);
        Thread thread = new Thread(task);
        thread.setName(threadName);
        thread.setDaemon(true);
        thread.start();
        return task;
    }