Skip to main content

消息中心, 避免代码的强耦合性

Project description

消息中心, 避免代码的强耦合性

测试代码:
if __name__ == '__main__':
@trigger('test')
def fun_send(a, b, c):
pass


@receiver('test')
def fun_callback_1(a, b, c):
print('fun_1', a, b, c)


@receiver('test')
def fun_callback_2(a, b, c):
print('fun_2', a, b, c)


fun_send(1, 2, 3)


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zmsgcentre-1.0.3.tar.gz (2.0 kB view hashes)

Uploaded source

Built Distribution

zmsgcentre-1.0.3-py3-none-any.whl (2.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page