♻️ Implement some delayed kernel events using task queues https://github.com/siyuan-note/siyuan/issues/12393

This commit is contained in:
Daniel 2024-09-05 18:07:04 +08:00
parent 9088e49a76
commit 09eec52a02
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
10 changed files with 79 additions and 44 deletions

View file

@ -219,7 +219,7 @@ func Mount(boxID string) (alreadyMount bool, err error) {
Conf.Save()
}
task.AppendTaskWithDelay(task.PushMsg, 3*time.Second, util.PushErrMsg, Conf.Language(52), 7000)
task.AppendAsyncTaskWithDelay(task.PushMsg, 3*time.Second, util.PushErrMsg, Conf.Language(52), 7000)
go func() {
// 每次打开帮助文档时自动检查版本更新并提醒 https://github.com/siyuan-note/siyuan/issues/5057
time.Sleep(time.Second * 10)