Is there any method to find the total number of pending async tasks in a process such as IO, timers?
Why do I need to count awaited tasks? In a high load server with many async calls, we have thousands of tasks, mostly IO, semaphore, delay, and so on. I think they use system signal/event or some resources in .net. It helps me to optimize the application and find memory leaks or consumption. Indeed, The task cleans its memory after finished, but it may be awaited for a long time; I need to know the number of awaited tasks.