[Core] Simplify MRV2 async output handling (#45442)

This commit is contained in:
Nick Hill
2026-06-13 18:15:36 -07:00
committed by GitHub
parent 71b961dd35
commit cf027b86af
3 changed files with 8 additions and 14 deletions
+2
View File
@@ -90,6 +90,8 @@ class UniProcExecutor(Executor):
if not non_block:
result = run_method(self.driver_worker, method, args, kwargs)
if isinstance(result, AsyncModelRunnerOutput):
result = result.get_output()
return result if single_value else [result]
try: