MCPcopy Index your code
hub / github.com/SurgeDM/Surge / NewTaskQueue

Function NewTaskQueue

internal/engine/concurrent/task_queue.go:22–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22func NewTaskQueue() *TaskQueue {
23 tq := &TaskQueue{}
24 tq.cond = sync.NewCond(&tq.mu)
25 return tq
26}
27
28func (q *TaskQueue) Push(t types.Task) {
29 q.mu.Lock()

Calls

no outgoing calls