質問するログイン新規登録

質問編集履歴

2

やりたいことをソースに書き込みました

2020/12/30 02:46

投稿

taro_yamada
taro_yamada

スコア55

title CHANGED
File without changes
body CHANGED
@@ -15,8 +15,10 @@
15
15
 
16
16
 
17
17
  with ThreadPoolExecutor(max_workers=1, thread_name_prefix="thread") as executor:
18
- response = await ws.recv()
18
+ response = await ws.recv()# ここを滞りなく実行したいです。
19
19
  board = json.loads(response)
20
+         print(board) # スレッドのバックグラウンド処理とは別に、このプリントだけはリアルタイムで表示したい。
21
+
20
22
  executor.map(event, board.get('id'))
21
23
  logger.info("submit end")
22
24
  logger.info("main end")

1

タイトルを修正しました

2020/12/30 02:45

投稿

taro_yamada
taro_yamada

スコア55

title CHANGED
@@ -1,1 +1,1 @@
1
- threadPlloExecutorの使い方について
1
+ threadPoolExecutorの使い方について
body CHANGED
File without changes