Skip to content

Generators v Coroutines

TBD

Generators

  1. Implements Iterator
  2. Can be used with a for loop
  3. Have send, throw, close methods

Coroutines

  1. Implements Awaitable
  2. Can be used with an event loop
  3. Have send, throw, close methods

Last update: 2022-09-13
Created: 2022-09-13

Comments