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

Method Post

queue.go:52–59  ·  view source on GitHub ↗

派发事件处理回调到队列中

(callback func())

Source from the content-addressed store, hash-verified

50
51// 派发事件处理回调到队列中
52func (self *eventQueue) Post(callback func()) {
53
54 if callback == nil {
55 return
56 }
57
58 self.Add(callback)
59}
60
61// 保护调用用户函数
62func (self *eventQueue) protectedCall(callback func()) {

Callers

nothing calls this directly

Calls 1

AddMethod · 0.65

Tested by

no test coverage detected