MCPcopy
hub / github.com/amoffat/sh / wait_for_completion

Method wait_for_completion

src/sh/__init__.py:890–898  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

888
889 def __await__(self):
890 async def wait_for_completion():
891 await self.aio_output_complete.wait()
892 if self.call_args["return_cmd"]:
893 # We know the command has completed already,
894 # but need to catch exceptions
895 self.wait()
896 return self
897 else:
898 return str(self)
899
900 return wait_for_completion().__await__()
901

Callers

nothing calls this directly

Calls 2

waitMethod · 0.95
waitMethod · 0.45

Tested by

no test coverage detected