pyemit package¶
Submodules¶
pyemit.emit module¶
-
pyemit.emit.
async_register
(event: str, handler: Callable, exchange='')[source]¶ 异步地将一个`handler`注册到事件`event`的处理器队列中。 :param event: :param handler: :param exchange: :return:
-
pyemit.emit.
emit
(channel: str, message: Any = None, exchange='')[source]¶ publish a message to channel. :param channel: the name of channel :param message: :return:
-
pyemit.emit.
register
(event: str, handler: Callable, exchange='')[source]¶ 为`event`注册一个事件处理器。如果 :param event: :param handler: :param exchange: :return:
-
pyemit.emit.
rpc_send
(remote) → Any[source]¶ emit msg and wait response back. The func will add __emit_sn__ to the dict, and the server should echo the serial number back. Args:
remote:Returns:
pyemit.remote module¶
Author: Aaron-Yang [code@jieyu.ai] Contributors:
Module contents¶
Top-level package for py-emit.