()
| 122 | |
| 123 | @ray.remote |
| 124 | def pool_factorial(): |
| 125 | import math |
| 126 | import multiprocessing |
| 127 | |
| 128 | ctx = multiprocessing.get_context("fork") |
| 129 | with ctx.Pool(processes=4) as pool: |
| 130 | return sum(pool.map(math.factorial, range(8))) |
| 131 | |
| 132 | @ray.remote |
| 133 | def g(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…