Skip to content

[提问] 如何实现会话超时提醒? #18

Answered by mnixry
Nattsu39 asked this question in 问答
Discussion options

You must be logged in to vote

我能想到的是用事件处理函数中执行 loop.call_later 来添加一个在到达超时事件后执行的回调

但是不知道怎么样在正常响应的情况下取消回调(

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stdrc
Comment options

stdrc Jul 9, 2021
Maintainer

Answer selected by Nattsu39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
问答
Labels
None yet
3 participants