JavaScript & Advanced ES6+ (0-to-Hero Big Tech Standard)
›
16. async/await Internals, Generators (function*) & Coroutine Emulation
50 mins
Course Syllabus
Interactive Lesson Studio
Loading lesson content...
🎯 Big Tech Coding & Interview Challenges
Practice these curated problems. Click "Load in Sandbox" to solve live in the Code Studio!
Hard
1. Custom async/await Coroutine Runner (co Library Emulator)
Build a `runAsync(generatorFn)` helper that executes a generator function yielding Promises just like native `async/await`.
💡 View Pro Interview Hint
• Recursively call iterator.next inside Promise.resolve().then.
JavaScript