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. 

My idea was to collect all handles in a WeakSet.

However it is not possible to create weak references to asyncio.Handle 
because they have no __weakref__ slot.

Would it make sense to add a __weakref__ slot to asyncio.Handle so they 
become weak referenceable?

Best regards,

-sbi

Reply via email to