Add AK2003/AK2004/AK2005 documentation #7682
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Documentation for 2004 and 2005 is a repeat of 2003
uid: AK2003
title: Akka.Analyzers Rule AK2003 - "
ReceiveActor.Receive
message handler must not be a void async delegate."AK2003 - Error
ReceiveActor.Receive
message handler delegate must not be a void async delegate. UseReceiveAsync
instead.Cause
ReceiveActor.Receive
accepts anAction<TMessage>
as a delegate, anyvoid async
delegate passed as an argument will be invoked as a detached asynchronous function that can cause erroneous message processing behavior.An example:
Resolution