When do you use generator based library for async programming instead of the async/await?

machy44 - Aug 9 '20 - - Dev Community

When I have to do some async programming I always choose the async/await syntax. But today I have read about co lib which is based on generators. What are the pros and cons of both approaches?

Could you give me an example in which situations are generators better choice for async programming than async/await?

. . . . . . . . . . . . . .
Terabox Video Player