mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
♻️ Implement some delayed kernel events using task queues https://github.com/siyuan-note/siyuan/issues/12393
This commit is contained in:
parent
4f04ae98dd
commit
50adf9751b
6 changed files with 16 additions and 22 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue