Convert Promise based ExpressJS App to Async Await

preview_player
Показать описание
In this video we will learn how to take any existing nodejs app that has been written in Promise Paradigm and convert that to Async Await Paradigm.
Async Await based application gives us the feel that we are writing synchronous code. Code maintenance and debugging is easy as compared to Promise based style.
Рекомендации по теме
Комментарии
Автор

One question, why haven't you used await keyword in index.js file at a place where you are returning taskController.getTask (req, res, next)?

anuranjansrivastav