We have a legacy method with return type of async Task<>
. Its current implementation needs to query the database thus the need for asynchronous operation. But we're changing it to just use in-memory objects so basically we don't need to have an asynchronous operation in the implementation anymore but I don't want to change the method's signature to not break any callers of the method.
Now, should I wrap the implementation in an await Task.FromResult
or should I just not use any await
and just suppress the warning?