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

Reply via email to