MCPcopy Create free account
hub / github.com/TalkingData/owl / clearPending

Method clearPending

controller/queue.go:85–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83}
84
85func (q *Queue) clearPending() {
86 for !q.isfull() && q.putters.Len() != 0 {
87 q.notifyPutter(nil)
88 }
89 for !q.isempty() && q.getters.Len() != 0 {
90 v := q.get()
91 q.notifyGetter(nil, v)
92 }
93}
94
95func (q *Queue) get() interface{} {
96 e := q.items.Front()

Callers 2

GetMethod · 0.95
PutMethod · 0.95

Calls 5

isfullMethod · 0.95
notifyPutterMethod · 0.95
isemptyMethod · 0.95
getMethod · 0.95
notifyGetterMethod · 0.95

Tested by

no test coverage detected