[issue18078] threading.Condition to allow notify on a specific waiter

João Bernardo report at bugs.python.org
Mon Aug 5 02:17:28 CEST 2013


João Bernardo added the comment:

I've been thinking about returning a list on "wait_for_any", but that way you will not be able to implement "wait_for" using it!

"wait_for" will return False on timeouts while "wait_for_any" will return a list with some conditions(evaluates to True).

Also, "wait_for" will show the result of the predicate when there's no timeout. It may clash with the boolean value of the list in some cases.

Suggestions?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18078>
_______________________________________


More information about the Python-bugs-list mailing list