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 Oleg K2
Recipients Oleg K2, yselivanov
Date 2017-11-21.14:44:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1511275452.66.0.213398074469.issue32104@psf.upfronthosting.co.za>
In-reply-to
Content
currently there is no other way to interrupt task but to call
cancel() which will: 

"This arranges for a CancelledError to be thrown into the wrapped coroutine on the next cycle through the event loop."

in order to write advanced Tasks there should be a way
to throw custom exceptions into active Task. 
so it can react accordingly.  

i am looking for the same thing as "generator.throw()" is providing,
allowing to interrupt generators different way.
History
Date User Action Args
2017-11-21 14:44:12Oleg K2setrecipients: + Oleg K2, yselivanov
2017-11-21 14:44:12Oleg K2setmessageid: <1511275452.66.0.213398074469.issue32104@psf.upfronthosting.co.za>
2017-11-21 14:44:12Oleg K2linkissue32104 messages
2017-11-21 14:44:12Oleg K2create