Home > SYS_MessageBus > pullPublic
SYS_MessageBus.pullPublic() method
公共消息总线:拉消息
签名
typescript
pullPublic(topic: string, callbackFn: (message: any) => void): ISYS_MessageBusTask;1
参数名
参数 | 类型 | 描述 |
|---|---|---|
topic | string | 主题 |
callbackFn | (message: any) => void | 拉到消息后的回调 |
返回值
消息总线任务
备注
每次只能拉一个消息