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

Method EventCallback

proc/syncrecv.go:17–20  ·  view source on GitHub ↗

将处理回调返回给BindProcessorHandler用于注册

()

Source from the content-addressed store, hash-verified

15
16// 将处理回调返回给BindProcessorHandler用于注册
17func (self *SyncReceiver) EventCallback() cellnet.EventCallback {
18
19 return self.callback
20}
21
22// 持续阻塞,直到某个消息到达后,使用回调返回消息
23func (self *SyncReceiver) Recv(callback cellnet.EventCallback) *SyncReceiver {

Callers 3

clientFunction · 0.95
clientAsyncRPCFunction · 0.95
clientSyncRPCFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected