还原注释
This commit is contained in:
parent
3e70d8b27b
commit
2270ed7f72
9
main.py
9
main.py
@ -81,11 +81,10 @@ class PikpakConsole(cmd2.Cmd):
|
||||
return await asyncio.wrap_future(future)
|
||||
|
||||
async def aoutput(self, output):
|
||||
return ""
|
||||
# async def PrintOuput(output):
|
||||
# print(output)
|
||||
# future = asyncio.run_coroutine_threadsafe(PrintOuput(output), self.ioLoop)
|
||||
# await asyncio.wrap_future(future)
|
||||
async def PrintOuput(output):
|
||||
print(output)
|
||||
future = asyncio.run_coroutine_threadsafe(PrintOuput(output), self.ioLoop)
|
||||
await asyncio.wrap_future(future)
|
||||
|
||||
async def Run(self):
|
||||
# 1. 设置忽略SIGINT
|
||||
|
Loading…
x
Reference in New Issue
Block a user