Done.
On Sun, Apr 27, 2014 at 8:44 AM, Guido van Rossum <[email protected]> wrote: > Filed http://code.google.com/p/tulip/issues/detail?id=166 > > > On Sun, Apr 27, 2014 at 8:43 AM, Guido van Rossum <[email protected]>wrote: > >> Honestly, looking back I think using __slots__ was premature optimization >> (my fault). We should add the requested slot to Handle. Also to CoroWrapper >> -- a bare generator does support weak references, so CoroWrapper should >> too. (I don't think we need to add it to _TracebackLogger, which is used >> internally only. A quick audit showed no other classes using __slots__ in >> asyncio.) >> >> >> On Sun, Apr 27, 2014 at 4:34 AM, Andrew Svetlov <[email protected] >> > wrote: >> >>> I think better to use public API and create wrapper for call_later to >>> don't mess with foreign delayed calls: >>> https://gist.github.com/asvetlov/11343386 >>> >>> On Sun, Apr 27, 2014 at 2:23 PM, Luca Sbardella >>> <[email protected]> wrote: >>> > Hi, >>> > >>> > On 27 April 2014 12:13, Stéphane Bidoul <[email protected]> >>> wrote: >>> >> >>> >> Hello, >>> >> >>> >> I have a use case where I want to collect Handles created with >>> call_later >>> >> in order to be able to eventually cancel all those that have not run >>> yet. >>> > >>> > >>> > you can access handlers yet to run via the event loop ``_scheduled`` >>> > attribute (a list of handlers ordered by execution time): >>> > >>> > scheduled = asyncio.get_event_loop()._scheduled >>> > >>> > >>> > -- >>> > http://lucasbardella.com >>> >>> >>> >>> -- >>> Thanks, >>> Andrew Svetlov >>> >> >> >> >> -- >> --Guido van Rossum (python.org/~guido) >> > > > > -- > --Guido van Rossum (python.org/~guido) > -- --Guido van Rossum (python.org/~guido)
