-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
We are using AsyncFixer
in a project that uses https://github.com/martinothamar/Mediator, and instead of returning ValueTask
, we get ValueTask<Unit>
.
Unit
is basically same as void.
public async ValueTask EditStorageAsync(ISender sender, [AsParameters] EditStorageCommand command, CancellationToken cancellationToken) =>
await sender.Send(command, cancellationToken);
sender.Send
returns ValueTask<Unit>
, to get rid of the Unit value we used async/await, but this triggers AsyncFixer01, but if we remove async & await we get a type error instead.
Cannot implicitly convert type 'System.Threading.Tasks.ValueTask<Mediator.Unit>' to 'System.Threading.Tasks.ValueTask'
Metadata
Metadata
Assignees
Labels
No labels