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

Function main

examples/scheduler/main.go:14–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12)
13
14func main() {
15 fmt.Println("=== Agent SDK - Scheduler 示例 ===")
16
17 // 示例 1: 步骤触发
18 demonstrateStepTrigger()
19
20 // 示例 2: 时间间隔触发
21 demonstrateIntervalTrigger()
22
23 // 示例 3: 步骤监听器
24 demonstrateStepListeners()
25
26 // 示例 4: 多任务调度
27 demonstrateMultipleTasks()
28
29 // 示例 5: 任务取消
30 demonstrateTaskCancellation()
31
32 // 示例 6: 触发回调监控
33 demonstrateTriggerMonitoring()
34
35 fmt.Println("\n=== 所有示例完成 ===")
36}
37
38// 示例 1: 步骤触发
39func demonstrateStepTrigger() {

Callers

nothing calls this directly

Calls 6

demonstrateStepTriggerFunction · 0.85
demonstrateStepListenersFunction · 0.85
demonstrateMultipleTasksFunction · 0.85

Tested by

no test coverage detected