Rethink Async in JavaScript
View Slide
Okies....but it blocks, duh!
OK, not bad...now process that file.
Streams are broken,callbacks are notgreat to work with,errors are vague,tooling is not great,communityconvention is sortof there..
! async-await !
ASYNCWhatever is retunred shall be aPromise.We can use await operator in it!
AWAITawait an oparator that suspendsexecution of the scope.until the awaited promise is resolved orrejectsrejects results in a throw
h3manth.com@gnumanth!