Generators are leaking  because they don't die by themselves. Hmmm.
Implementing on_subscribe
Added docs
Implementation of missing function on_subscribed
Generator uses on_subscribe
Testing non-leaking generators is complicated
Ranges are ordinare Enum-enabled collections. No need for a separate case here.
Put default configuration into an attribute
Check for garbage collected processes and dispose observers.