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