[Core] Simplify MRV2 async output handling (#45442)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user