Hi,
In tornado, there's a really nice feature called set_blocking_signal_threshold, which sets a signal that fires if a coroutine has been running for too long without returning control back to the main loop:
In tornado this will then log the traceback of the coroutine in question. This has been a very valuable tool when a developer accidentally introduces code that blocks the event loop for way too long of a time.
Is there an equivalent in asyncio? I have a sketch in my head of how to implement that, but wanted to see if it existed somewhere first.
Thanks!
-Yusuke