Python: Coroutine

Coroutines v.s. generators

Coroutines are similar to generators with a few differences. The main differences are:

generators are data producers
coroutines are data consumers

read more

  • Python Tips: Coroutines
  • 5.3 Coroutines

  • A Curious Course on Coroutines and Concurrency

  • Python “黑魔法” 之 Generator Coroutines

你可能感兴趣的:(Python: Coroutine)