Hi again,

thanks for all the great input!

I still think there should still a warning in the documentation for 
BaseEventLoop.close
that it does not cancel the tasks still running so that no finalizers are 
called. It is the
last chance to do that in a controlled fashion, as the event loop cannot be 
run after
close anymore. We should then discourage programmers to use try:..finally: 
or
with: context managers in tasks since, well, there is no guarantee they're 
ever called.

To me, the name close implies strongly "clean up after you and then finish 
the thing
off". The argument that we cannot cancel the tasks because they might 
resist cancellation
is a bit as if file.close wouldn't flush its buffers because the disk might 
be full.

Greetings

Martin

Reply via email to