How to convert a LOOP with pre-processing code to parallel Pool processing i.e.
a = Actor.remote()
for data in ... :
...process data ...
res = .....
#doesnt return value
a.method.remote(res)
to ~:
actors = [ ...... ]
for data in ... :
...process data ...
res = .....
#doesnt return value
any(actor) ....method.remote(res)
there is Actor pool but it only works if there isnt pre-processing ?
The only way I see it is to make the pre-processing a Generator-method and then feed it to Pool.map()
Is there a better way ?