MCPcopy Create free account
hub / github.com/astercloud/aster / GetGlobalTaskExecutor

Function GetGlobalTaskExecutor

pkg/tools/builtin/task_executor.go:235–240  ·  view source on GitHub ↗

GetGlobalTaskExecutor 获取全局任务执行器

()

Source from the content-addressed store, hash-verified

233
234// GetGlobalTaskExecutor 获取全局任务执行器
235func GetGlobalTaskExecutor() *TaskExecutor {
236 taskExecutorOnce.Do(func() {
237 globalTaskExecutor = NewTaskExecutor()
238 })
239 return globalTaskExecutor
240}
241
242// SetGlobalTaskExecutorFactory 设置全局任务执行器工厂
243// 应用层在初始化时调用此函数注入 SubAgentManager

Callers 6

SetFactoryFromAgentFunction · 0.85
listTasksMethod · 0.85
getTaskStatusMethod · 0.85
cancelTaskMethod · 0.85
runTaskMethod · 0.85

Calls 1

NewTaskExecutorFunction · 0.85

Tested by

no test coverage detected