Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call reply closure on method event subscriptions #40

Open
wants to merge 2 commits into
base: 5.0.x
Choose a base branch
from

Conversation

joemccall86
Copy link

  • Add simple unit test to expand test coverage for reply closures for both subscriber types
  • Ensure that when an EventSubscriberSubscription trigger is built with a reply, that reply is propagated to the trigger itself
  • Handle the new closure reply field on the EventSubscriberTrigger, following the same pattern as ClosureEventTrigger.

Note: We could de-duplicate this by implementing a common proceed() method in AbstractSubscription, but I wanted to leave those re-factoring decisions up to you.

Closes #39

Joe McCall added 2 commits March 23, 2022 08:24
Add unit test to spec the desired behavior when sendAndReceive is called both on a closure subscriber, and on a method subscriber
* Follow the same pattern in place for Closure subscriptions
* Call the reply closure if it exists on both failure and success cases
* Ensure backwards-compatibility by setting the reply closure parameter to null
@CLAassistant
Copy link

CLAassistant commented Mar 23, 2022

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Joe McCall seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@matrei
Copy link
Collaborator

matrei commented Nov 8, 2023

@puneetbehl can this be merged and released' v4.0.1? I think that would also fix #43

@matrei
Copy link
Collaborator

matrei commented Nov 8, 2023

Just tried to build a release version and problem in #43 is still present. I'm gonna check why that is.

@puneetbehl puneetbehl changed the base branch from master to 5.0.x November 28, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SendAndReceive does not trigger when subscriber is a method
3 participants