Please don't. The last code can be small but is very difficult to be readen fast by anyone. Come back to that code in 3 months from now and you will see that you will need a couple of seconds to understand it.
The code must be easy to follow. The first refactor with async/await is perfect, stick with it.
Darlan Tódero ten Caten
Entrepreneur & Software Engineer
Please don't. The last code can be small but is very difficult to be readen fast by anyone. Come back to that code in 3 months from now and you will see that you will need a couple of seconds to understand it.
The code must be easy to follow. The first refactor with async/await is perfect, stick with it.