![](https://secure.gravatar.com/avatar/8ac615df352a970211b0e3d94a307c6d.jpg?s=120&d=mm&r=g)
Author: brian.quinlan Date: Fri Jul 30 12:49:13 2010 New Revision: 83273 Log: Describes the behavior of add_done_callback when the callable raises. Modified: peps/trunk/pep-3148.txt Modified: peps/trunk/pep-3148.txt ============================================================================== --- peps/trunk/pep-3148.txt (original) +++ peps/trunk/pep-3148.txt Fri Jul 30 12:49:13 2010 @@ -228,9 +228,13 @@ Attaches a callable *fn* to the future that will be called when the future is cancelled or finishes running. *fn* will be called - with the future as its only argument. Added callables are called - in the order that they were added and are always called in a - thread belonging to the process that added them. + with the future as its only argument. + + Added callables are called in the order that they were added and + are always called in a thread belonging to the process that added + them. If the callable raises an `Exception` then it will be + logged and ignored. If the callable raises another + `BaseException` then behavior is not defined. If the future has already completed or been cancelled then *fn* will be called immediately.
participants (1)
-
brian.quinlan