MCPcopy
hub / github.com/davyxu/cellnet / QueuedCall

Function QueuedCall

queue.go:152–158  ·  view source on GitHub ↗

有队列时队列调用,无队列时直接调用

(queue EventQueue, callback func())

Source from the content-addressed store, hash-verified

150
151// 有队列时队列调用,无队列时直接调用
152func QueuedCall(queue EventQueue, callback func()) {
153 if queue == nil {
154 callback()
155 } else {
156 queue.Post(callback)
157 }
158}

Callers 2

AfterFunction · 0.92
SessionQueuedCallFunction · 0.85

Calls 1

PostMethod · 0.65

Tested by

no test coverage detected