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

Allow multimethods to be treated as interceptors #526

Closed

Conversation

philomates
Copy link

In a service I was working on I wanted to use a multimethod as an interceptor. It errored out and after a little digging I realized that the IntoInterceptor was only extended to functions but not multimethod functions. One fix would be to wrap my multimethod function in a normal function closure, but figured extending IntoInterceptor to multimethods would help prevent others from running into the same issue.

The tests are failing and I can't understand why. For instance, if you repeat an interceptor derived from a function in the interceptor chain, executing the chain doesn't result in repeat entries. Probably some subtlety with how the tests are setup or IntoInterceptor is implemented from fn/multifns, but I couldn't get to the bottom of it. Any ideas?

@philomates philomates closed this by deleting the head repository May 23, 2024
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.

None yet

2 participants