回答編集履歴

1

2021/01/22 03:54

投稿

退会済みユーザー
answer CHANGED
@@ -12,7 +12,8 @@
12
12
  async def Main(cls):
13
13
  while(True):
14
14
  start = time.time()
15
- send_d = await asyncio.Task(cls._shoot())
15
+ - send_d = await asyncio.Task(cls._shoot())
16
+ + send_d = await cls._shoot()
16
17
  - await asyncio.Task(_Send("ws://192.168.11.199:8080",send_d))
17
18
  + asyncio.create_task(_Send("ws://192.168.11.199:8080",send_d))
18
19
  print("End of loop time:",time.time() - start,"[sec]")