Please, help me to enhance the documentation. Get the documentation source at:
http://hg.python.org/cpython/file/5bc23c111de1/Doc/library/asyncio-eventloop.rst

And send a patch.

Victor

2014-09-10 13:04 GMT+02:00 Martin Teichmann <[email protected]>:
> 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