Can I use concurrent.futures in Python?

When I use concurrent.futures, TouchDesigner show error.
I wrote below simple code in Text DAT.

import concurrent.futures

def other_process_func():
    # abbreviation

pool = concurrent.futures.ProcessPoolExecutor(max_workers=2)
pool.submit(other_process_func)

other_process_func is code by [url]https://github.com/rykov8/ssd_keras/blob/master/testing_utils/videotest_example.py[/url]

Can I use concurrent.futures in Python?
2017-11-22 22_42_38-TouchDesigner argument error.png

Maybe this can help you, here’s a working example how to use threading in TD:
Threaded Web COMP

Make sure the other threads don’t touch TD nodes in the main thread.

Threaded Web COMP sounds interesting, but it’s slightly different from wanted answer.

Finally I noticed.
Using concurrent.futures.ProcessPoolExecutor, above error happened.
Using concurrent.futures.ThreadPoolExecutor or threading, no error.
also Is it not recommend in TouchDesigner?
If not, I will use OSC, after dividing python process to other application.



It seems like for the process pool it’s trying to launch another TouchDesigner process, not another python interpreter process. We’ll have to look at how we have our python integration setup so it potentially starts up the correct standalone interpreter for the process pool instead of trying to start up another TouchDesigner process.

Thanks
I’m python and multiprocessing beginner.
I will try after studying about multiprocessing in python.