MCPcopy
hub / github.com/spicetify/cli / enqueueWatchJob

Function enqueueWatchJob

src/cmd/watch.go:255–265  ·  view source on GitHub ↗
(job func())

Source from the content-addressed store, hash-verified

253}
254
255func enqueueWatchJob(job func()) {
256 watchQueueOnce.Do(func() {
257 watchQueue = make(chan func(), 64)
258 go func() {
259 for fn := range watchQueue {
260 fn()
261 }
262 }()
263 })
264 watchQueue <- job
265}

Callers 1

WatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected