Skip to content

feat(eventbus): allow a handler to subscribe to multiple events#179

Merged
killagu merged 4 commits intoeggjs:masterfrom
YdreamW:feat/multi_event
Dec 26, 2023
Merged

feat(eventbus): allow a handler to subscribe to multiple events#179
killagu merged 4 commits intoeggjs:masterfrom
YdreamW:feat/multi_event

Conversation

@YdreamW
Copy link
Contributor

@YdreamW YdreamW commented Dec 21, 2023

Checklist
  • npm test passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

plugin/eventbus eventbus-decorator eventbus-runtime

Description of change

allow a handler to subscribe to multiple events

@fengmk2 fengmk2 requested a review from killagu December 21, 2023 14:23
@fengmk2 fengmk2 added the enhancement New feature or request label Dec 21, 2023
@codecov
Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (04fabef) 92.52% compared to head (598524e) 92.62%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #179      +/-   ##
==========================================
+ Coverage   92.52%   92.62%   +0.09%     
==========================================
  Files         235      236       +1     
  Lines        5020     5055      +35     
  Branches      539      544       +5     
==========================================
+ Hits         4645     4682      +37     
+ Misses        375      373       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@killagu
Copy link
Contributor

killagu commented Dec 26, 2023

🎉实现的非常好。感谢。

@YdreamW
Copy link
Contributor Author

YdreamW commented Dec 26, 2023

deprecated 的接口没覆盖到,覆盖率掉了,我补下单测

Copy link
Contributor

@killagu killagu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@killagu killagu merged commit 1d460a5 into eggjs:master Dec 26, 2023
@killagu
Copy link
Contributor

killagu commented Dec 26, 2023

  • @eggjs/aop-decorator@3.29.0
  • @eggjs/controller-decorator@3.29.0
  • @eggjs/core-decorator@3.29.0
  • @eggjs/egg-module-common@3.29.0
  • @eggjs/eventbus-decorator@3.29.0
  • @eggjs/standalone-decorator@3.29.0
  • @eggjs/tegg@3.29.0
  • @eggjs/tegg-aop-plugin@3.29.0
  • @eggjs/tegg-aop-runtime@3.29.0
  • @eggjs/tegg-background-task@3.29.0
  • @eggjs/tegg-common-util@3.29.0
  • @eggjs/tegg-config@3.29.0
  • @eggjs/tegg-controller-plugin@3.29.0
  • @eggjs/tegg-dynamic-inject@3.29.0
  • @eggjs/tegg-dynamic-inject-runtime@3.29.0
  • @eggjs/tegg-eventbus-plugin@3.29.0
  • @eggjs/tegg-eventbus-runtime@3.29.0
  • @eggjs/tegg-lifecycle@3.29.0
  • @eggjs/tegg-loader@3.29.0
  • @eggjs/tegg-metadata@3.29.0
  • @eggjs/tegg-orm-decorator@3.29.0
  • @eggjs/tegg-orm-plugin@3.29.0
  • @eggjs/tegg-plugin@3.29.0
  • @eggjs/tegg-runtime@3.29.0
  • @eggjs/tegg-schedule-decorator@3.29.0
  • @eggjs/tegg-schedule-plugin@3.29.0
  • @eggjs/tegg-standalone@3.29.0
  • @eggjs/tegg-transaction-decorator@3.29.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants