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

Right way, if any, to break/shortcircuit a chain handler and return earlier. #431

Open
twss opened this issue Apr 16, 2019 · 0 comments
Open

Comments

@twss
Copy link

twss commented Apr 16, 2019

Given I have a chain handler:

chainHandler1.chain(chainHandler2).chain(memoryHandler)

and the normal flow would be:

chainHandler1.beforeSearch
  chainHandler2.beforeSearch
    MemoryHandler.search
  chainHandler2.afterSearch
chainHandler1.afterSearch

What would be the correct way to terminate early and only do:

chainHandler1.beforeSearch
chainHandler1.afterSearch
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

No branches or pull requests

1 participant