|
|
|
|
|
by StackTopherFlow
529 days ago
|
|
I agree with you. I rarely find myself in a situation where a piece of async code forces me to refactor a synchronous code to be async. A lot of junior devs I've worked with don't understand that putting `async` in front of a function doesn't actually make it asynchronous. |
|
of course it does. annotating any function with async makes it implicitly return a Promise, which fundamentally changes how all callers have to use it (and their caller's callers, etc.). you can't "just" make a function async and change nothing about how it was used previously.
https://jsfiddle.net/om3tj2rd/
this