This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author yselivanov
Recipients matrixise, socketpair, yselivanov
Date 2017-07-25.15:21:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500996102.13.0.979135752512.issue31033@psf.upfronthosting.co.za>
In-reply-to
Content
> Yes, I agree with you about my weird way of debugging. But anyway, changing API with adding ability to pass actual cause would be welcome.

I'm not opposed to the idea, btw. If we do decide to add an argument to 'cancel', we probably should do the same for concurrent.futures.

Another possibility would be to allow cancellation via Future.set_exception:

  task.set_exception(asyncio.CancelledError('message'))
History
Date User Action Args
2017-07-25 15:21:42yselivanovsetrecipients: + yselivanov, socketpair, matrixise
2017-07-25 15:21:42yselivanovsetmessageid: <1500996102.13.0.979135752512.issue31033@psf.upfronthosting.co.za>
2017-07-25 15:21:42yselivanovlinkissue31033 messages
2017-07-25 15:21:42yselivanovcreate