MCPcopy Create free account
hub / github.com/ClashDotNetFramework/experimental-clash / Put

Method Put

common/queue/queue.go:14–22  ·  view source on GitHub ↗

Put add the item to the queue.

(items ...interface{})

Source from the content-addressed store, hash-verified

12
13// Put add the item to the queue.
14func (q *Queue) Put(items ...interface{}) {
15 if len(items) == 0 {
16 return
17 }
18
19 q.lock.Lock()
20 q.items = append(q.items, items...)
21 q.lock.Unlock()
22}
23
24// Pop returns the head of items.
25func (q *Queue) Pop() interface{} {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected