Remove async await where not needed#18901
Conversation
|
Hi there @Henr1k80, thank you for this contribution! 👍 While we wait for one of the Core Collaborators team to have a look at your work, we wanted to let you know about that we have a checklist for some of the things we will consider during review:
Don't worry if you got something wrong. We like to think of a pull request as the start of a conversation, we're happy to provide guidance on improving your contribution. If you realize that you might want to make some changes then you can do that by adding new commits to the branch you created for this work and pushing new commits. They should then automatically show up as updates to this pull request. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
|
Thanks for the effort on this one @Henr1k80 but I'm afraid we've already had this covered in another PR - #16535 - that we've merged in for Umbraco 16. It could have been in 15 as it's not breaking, but we felt when reviewing it was better for the next major just so we have a longer period for a release candidate just in case something gets missed in implementation or review. So we will be removing the Apologies for your wasted work on this one. Do feel free in future to raise an issue suggesting a PR you'll make if you are going to spend a fair bit of time on one - as hopefully then someone will catch it before you embark on something we may not need. |
Prerequisites
Description
Remove async await where not needed.
I am aware that I have changed a lot of files, and it might not make a lot of performance difference in most places, but I wanted to eliminate the horrible
await Task.FromResult(from the codebase, so it is never copied again.Many of the controller methods could be be made sync, but I supposed it would make it fail the signature change check.