完善 LongTask 模块
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-10-19 16:47:50 +08:00
parent a65cb118cc
commit f768c91430
2 changed files with 10 additions and 4 deletions

View File

@ -4,13 +4,11 @@ import asyncio
from loguru import logger
import nonebot
# from nonebot.adapters import Bot, Event
# from nonebot_plugin_alconna import UniMessage
from konabot.common.longtask import (
# DepLongTaskTarget,
# LongTask,
# create_longtask,
# get_long_task_target,
# handle_long_task,
init_longtask,
)
@ -45,6 +43,5 @@ async def _():
# handler="test_callback_001",
# data={},
# target=target,
# deadline=datetime.datetime.now() + datetime.timedelta(seconds=2),
# deadline=datetime.datetime.now() + datetime.timedelta(seconds=20),
# )
# await target.send_message(UniMessage().text("Hello, world!"), at=True)