Releases: Undertone0809/broadcast-service
Releases · Undertone0809/broadcast-service
v1.3.2
feat
- add sub-thread exception handle
v2.1.0
v2.0.0
v1.3.1
v1.2.0
Upgrade
Please update the latest version.
pip install --upgrade broadcast-service
feat
- Add support multiple publications and multiple subscriptions. #7
broadcast_service.publish(["topic1", "topic2"], "message")
- Optimize the function of
broadcast_service.subscribe()
andbroadcast_service.publish()
#7
- The following two cases are equivalent.
@broadcast_service.on_listen(['topic1'])
def handle_all_msg():
# your code
@broadcast_service.on_listen('topic1')
def handle_all_msg():
# your code
broadcast_service.subscribe('topic1')
broadcast_service.subscribe(['topic1'])
test and other
v1.1.7
upgrade
You can use the following sentence to upgrade the version.
pip install --upgrade broadcast-service
feat
- add decorator, optimize syntactic expression #5
- You can use the following sentences to subscribe topic
@broadcast_service.on_listen(['topic1'])
def handle_all_msg():
# your code
@broadcast_service.on_listen(['topic1','topic2'])
def handle_all_msg():
# your code
@broadcast_service.on_listen()
def handle_all_msg(*args, **kwargs):
# your code
- Add some equals function name
# send topic msg
broadcast_service.subscribe('my_topic', handle_msg)
broadcast_service.listen('my_topic', handle_msg)
broadcast_service.on('my_topic', handle_msg)
# listen topic msg
broadcast_service.broadcast('my_topic', info)
broadcast_service.publish('my_topic', info)
broadcast_service.emit('my_topic', info)
test
- optimize tests and add some demo #5
v1.1.6
v1.1.5
attention : v1.1.5 is abandoned.
upgrade
You can use the following sentence to upgrade the version.
pip install --upgrade broadcast-service
feat
- provide multithread support
- optimize function callback parameters