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

Опубликовано: 17 Май 2026
на канале: Sathyaish Chakravarthy
1,304
24

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.

   • JavaScript: Wrapping the FileReader API in...  

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

Video played at the end:

1. Is Our Suffering Subjective? | Swami Sarvapriyananda
   • Video  

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

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

Do you want to become a computer programmer? I will be starting an online course for you. Please join my mailing list at https://sathyaish.net/?cmp=yt&v=H_Oey... to be informed when the course is launched.