On Wed, Jul 19, 2017 at 2:37 AM, Pau Freixes <pfrei...@gmail.com> wrote:
> Not at all, the idea is taking into advantage the Event principle, > having a set of Futures waiting to be awakened and returning either a > value or exception. That's not the principle of Event. You are describing a Future. Regarding the propagation of the cancellation if and only if *all* > callers are canceled IMHO will fall on the side of a complex problem, > and the solution might be do nothing. If you're willing to do nothing when all callers cancel, then the Future solution that Nathaniel posted should work for you (replacing ensure_future() with shield()). Have you tried it? Do you have a specific objection to it?
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/