
June 23, 2019
11:39 p.m.
Hi, I tried posting on SO, but havent been able to solve the problem. https://stackoverflow.com/questions/56696562/running-long-blocking-calculati... I have a very noob question. I have a function, which takes a second or two to process (CPU bounded) and then there is a for loop which runs that for loop.. Lets take this example def func(x): return x*x res = [func(i) for i in range(20)] Now, think of func being something complicated.. But the above is the idea. How do I run this function concurrently/ simultaneously using twisted framework. Thanks