Fix replaychat async startlisten

This commit is contained in:
taizan-hokuto
2019-11-11 22:52:28 +09:00
parent 7f232e8628
commit b17f3ce06e
2 changed files with 4 additions and 2 deletions

View File

@@ -13,6 +13,8 @@ __all__ = ["core_async","core_multithread","processors"]
from .api import (
LiveChat,
LiveChatAsync,
ReplayChat,
ReplayChatAsync,
ChatProcessor,
CompatibleProcessor,
SimpleDisplayProcessor,

View File

@@ -122,7 +122,7 @@ class ReplayChatAsync:
else:
listen_task.add_done_callback(self._done_callback)
def _startlisten(self):
async def _startlisten(self):
"""最初のcontinuationパラメータを取得し、
_listenループのタスクを作成し開始する
"""
@@ -237,7 +237,7 @@ class ReplayChatAsync:
data = self.processor.process(items)
await callback(data)
def get(self):
async def get(self):
""" bufferからデータを取り出し、processorに投げ、
加工済みのチャットデータを返す。