We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In case there is a synchronous method that has an asynchronous counterpart, both methods should have the same kind of parameters, in the same order.
The return value of the asynchronous method should be Task for void synchronous methods or Task<Xyz> for synchronous methods that return a Xyz.
Task
void
Task<Xyz>
Xyz
Example:
int DoSomething(int x, int y, int z);
should have following async counterpart (if needed at all)
Task<int> DoSomethingAsync(int x, int y, int z);
In case the counterpart is e.g.
Task<int> DoSomethingAsync(int x, int z, int y);
we should report a violation because the parameters y and z are switched.
y
z
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In case there is a synchronous method that has an asynchronous counterpart, both methods should have the same kind of parameters, in the same order.
The return value of the asynchronous method should be
Task
forvoid
synchronous methods orTask<Xyz>
for synchronous methods that return aXyz
.Example:
should have following async counterpart (if needed at all)
In case the counterpart is e.g.
we should report a violation because the parameters
y
andz
are switched.The text was updated successfully, but these errors were encountered: