♻️ 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 16:28:42 +08:00
parent 4f04ae98dd
commit 50adf9751b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
6 changed files with 16 additions and 22 deletions

View file

@ -131,6 +131,7 @@ const (
AssetContentDatabaseIndexCommit = "task.asset.database.index.commit" // 资源文件数据库索引提交
CacheVirtualBlockRef = "task.cache.virtualBlockRef" // 缓存虚拟块引用
ReloadAttributeView = "task.reload.attributeView" // 重新加载属性视图
PushMsg = "task.push.msg" // 推送消息
)
// uniqueActions 描述了唯一的任务,即队列中只能存在一个在执行的任务。
@ -144,6 +145,7 @@ var uniqueActions = []string{
HistoryDatabaseIndexCommit,
AssetContentDatabaseIndexFull,
AssetContentDatabaseIndexCommit,
ReloadAttributeView,
}
func ContainIndexTask() bool {