Message306644
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. |
|
Date |
User |
Action |
Args |
2017-11-21 14:44:12 | Oleg K2 | set | recipients:
+ Oleg K2, yselivanov |
2017-11-21 14:44:12 | Oleg K2 | set | messageid: <1511275452.66.0.213398074469.issue32104@psf.upfronthosting.co.za> |
2017-11-21 14:44:12 | Oleg K2 | link | issue32104 messages |
2017-11-21 14:44:12 | Oleg K2 | create | |
|