Message320105
| Author | Liran Nuna |
|---|---|
| Recipients | Liran Nuna, asvetlov, yselivanov |
| Date | 2018-06-20.18:58:27 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1529521107.32.0.56676864532.issue33918@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
I would like to stress this issue happens with iterators as well, and this isn't a unique issue to asyncio only. I would like to propose four new magic methods for context managers to solve this: __pause__, __resume__, __apause__ and __aresume__ which will be called before/after a pause/resume happen before the coroutine/iterator continues. I'm not sure however if this is the correct venue for such discussion. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-06-20 18:58:27 | Liran Nuna | set | recipients: + Liran Nuna, asvetlov, yselivanov |
| 2018-06-20 18:58:27 | Liran Nuna | set | messageid: <1529521107.32.0.56676864532.issue33918@psf.upfronthosting.co.za> |
| 2018-06-20 18:58:27 | Liran Nuna | link | issue33918 messages |
| 2018-06-20 18:58:27 | Liran Nuna | create | |