Metadata-Version: 2.4
Name: dotask
Version: 0.1.0
Summary: 发布订阅注解方式
Home-page: https://gitee.com/d-yz/task-manager
Author: dyz
Author-email: 837701454@qq.com
Keywords: 发布订阅,注解,dotask
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

- 在方法上添加@task就可以直接开启一个线程执行任务
- 常用参数：
  - 生产者: role="producer",topic="自定义"
  - 消费者: role="consumer",subscribe="自定义",publish_after="自定义"
- 说明:
  - role: 用于区分上下游 producer/consumer
  - topic: 发布的主题
  - subscribe: 对哪些主题感兴趣
  - publish_after: 消费完后继续发布新主题
- 特别的：方法的返回值可以进行传递,若没有返回值则不会发布新主题
