-
Notifications
You must be signed in to change notification settings - Fork 72
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
Update IRequestHandler to return ValueTask instead of ValueTask<Unit> #103
Comments
Probably, I'll look into it as part of 3.0. It makes sense to keep up with MediatR API as much as possible |
Any update on this? IT's one of the (small) obstacles that we are currently facing migrating from MediatR |
I think if it's so important to migrate then u can use an adapter pattern |
Im currently using the following interface as a workaround, not ideal though
|
I assume that this type was added for compatibility with MediatR. However, it is removed in latest MediatR versions - which is a good thing in my opinion, as it is much cleaner to write
Task
return type instead ofTask<Unit>
.Does it make sense to remove it in the next major version?
The text was updated successfully, but these errors were encountered: