❔ Async Tasks (utility)
Hi, guys.
Been doing some refactor work and been upgrading an old project from sync to async.
But I'm not really sure if it's worth to upgrade smaller utility methods to async Tasks.
Microsoft says that I/O-bound code and CPU-bound code should be async.
So I have upgraded all my actions methods in the controllers, wrapper methods, repo methods.
But for instance what about a minor utility method that is called from an async Task in my controller, should it also be async?
Been doing some refactor work and been upgrading an old project from sync to async.
But I'm not really sure if it's worth to upgrade smaller utility methods to async Tasks.
Microsoft says that I/O-bound code and CPU-bound code should be async.
So I have upgraded all my actions methods in the controllers, wrapper methods, repo methods.
But for instance what about a minor utility method that is called from an async Task in my controller, should it also be async?