()
| 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 |