-
Notifications
You must be signed in to change notification settings - Fork 594
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
Dispatcher.compose
doesn't return a true dispatcher
#3370
Comments
Dispatcher.compose
doesn't return a true dispatcher
@metcoder95 FYI |
Yeah, that was my biggest concern when trying to mimic the Dispatcher being returned. But just to understand clear, you suggest to instead of doing mimics of the |
Yea, something like that. The back-pressure mechanism if dispatcher is slightly broken. |
This gets more complicated with So far everything could work (although complicated). The tricky part occurs when we have interceptors (e.g. |
Hmm, good point; this is something that is definitely missed from the current interceptor implementation.
I might say that the biggest issue is that we are branching the chain of calls there. In theory, we should try to always reply with Maybe the best is to always mandate return the value of |
Another option to consider is
and then we can deprecate the return value if dispatch and the drain event. Possibly even deprecating all events from the |
Or just add another param to |
A lot of work remaining: #3374 |
Do we want to deprecate them? |
It doesn't:
Fixing these are quite complicated.
I suggest
DIspatcher.compose
is replaced byundici.compose
which just returns a dispatch function and then we add support for all places that take adispatcher
argument should also check if it is a function and use it accordingly.Refs: #3368
The text was updated successfully, but these errors were encountered: