(*args, **kwargs)
| 36 | def func_generator(self, method_name, dispatch_fn, collect_fn, execute_fn, blocking): |
| 37 | |
| 38 | def func(*args, **kwargs): |
| 39 | args, kwargs = dispatch_fn(self, *args, **kwargs) |
| 40 | output = execute_fn(method_name, *args, **kwargs) |
| 41 | if blocking: |
| 42 | output = ray.get(output) |
| 43 | output = collect_fn(self, output) |
| 44 | return output |
| 45 | |
| 46 | return func |
| 47 |
no test coverage detected