MCPcopy Create free account
hub / github.com/RTradeLtd/Lens / Close

Method Close

engine/queue/queue.go:124–130  ·  view source on GitHub ↗

Close stops the queue runner and releases queue assets

()

Source from the content-addressed store, hash-verified

122
123// Close stops the queue runner and releases queue assets
124func (q *Queue) Close() {
125 q.stopC <- true
126 time.Sleep(time.Millisecond)
127 for !q.IsStopped() {
128 time.Sleep(time.Second)
129 }
130}
131
132// IsStopped checks if the queue is still running and active
133func (q *Queue) IsStopped() bool {

Callers

nothing calls this directly

Calls 1

IsStoppedMethod · 0.95

Tested by

no test coverage detected