JavaScript: Wrapping the FileReader API into a new one that uses Promises and async await

preview_player
Показать описание
The FileReader API relies on callbacks to maintain asynchronous execution. This introduces the well-known problem with asynchronous code, that it cannot be written like synchronous code.

To address this, in this video, I wrap the FileReader API around a new API that uses promises and async await.

---------------------

Video played at the end:

1. Is Our Suffering Subjective? | Swami Sarvapriyananda

2. "Anandamayi" Kirtan by Brenda McMorrow (Official Music Video) - Divine Mother chant

---------------------

Рекомендации по теме
Комментарии
Автор

brilliantly explained! you are a great teacher i must say

swaap
Автор

Very informative video. Thank you. I am stuck with the same issue. I will try it out tomorrow.

sanketkumar
Автор

dear .. how i can hard code a file name the get the content without using brows button ?

العرندس-عل
Автор

thanks, very interesting, anyway i managed to do the same with promise.all()

zosoppelin
Автор

What is the fuck you are doing.. hilarious.. 🤣

ManvendraSK
Автор

Can I get the source code for this file? It was really very helpful information. Thanks for sharing 😀

Yourdesigirlabroad
visit shbcf.ru