JP writes:

On Thu, Aug 29, 2013 at 1:00 PM, <exarkun@twistedmatrix.com> wrote:
What about a third option - if a cancellation function raises an exception, fail the Deferred with that exception.

I really like this idea, but it wont work if the cancel function has already fired the deferred.

Terry