Brian Quinlan <br...@sweetapp.com> added the comment:

This is the expected behavior.

Future.cancel() returns a bool indicating if the future was cancelled or not. 
If it returns False then there is no way to stop it.

The behavior that you are seeing for shutdown is documented as:
"""
shutdown(wait=True)
...

If wait is True then this method will not return until all the pending futures 
are done executing and the resources associated with the executor have been 
freed. If wait is False then this method will return immediately and the 
resources associated with the executor will be freed when all pending futures 
are done executing. Regardless of the value of wait, the entire Python program 
will not exit until all pending futures are done executing.
"""

----------
resolution:  -> invalid

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11724>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to