Multiple ChoiceHard 30s
Coroutine vs Generator
Choose the best answer for: coroutine vs generator
Options
- 1Coroutines use async/await for concurrency; generators use yield for iteration
- 2They are identical in behavior and differ only in keywords used
- 3Coroutines are a strict subset of generators with no other changes
- 4Generators are async by default and support the await keyword too
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.