-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
refactor(exec): kill the H2Exec trait #2182
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
Conversation
I was trying to find the discussion, but seemed to miss it. Could you highlight it (or link to the start of it)? |
I meant your response here (maybe I misinterpreted it)? djc |
Oh, I was referring to |
So what's the purpose of having a separate |
So @seanmonstar (or others) any thoughts about this? I'm totally fine if you don't want to merge this and/or if I missed what these traits are trying to achieve. I'm happy to find some other way forward for H3 if you want to keep these traits -- it's just that the current setup seems to have more complexity than warranted (but, again, I don't have the context to understand what it's trying to do, and I didn't see any comments or documentation about this). |
These traits were just trying to reduce the noise on the bounds, since without them, we have The exact name is less important. |
So is it necessary/useful to separate |
I don't understand the |
I was thinking instead of having different traits per type of task ( |
Are you suggesting that each of those futures would implement The point of those bounds is to forward the sendiness to the executor, such that you could have |
That's what this PR implements, because it seems surprising/complex in a way that doesn't seem warranted to have one trait per type that implements
Ah, so now at least I better understand the goal of this code. Not sure I fully understand how that works yet, though. We have |
A different approach might be just to turn |
|
I'm not sure this is much different ( To your original question of whether we'd need an H3Exec, I think probably yes. But I don't think a user will ever need to worry about that. |
We might decide to rename |
As briefly discussed on Discord. Hope that this is the right way to go about it. If it is, I'm happy to also kill off
NewSvcExec
.