Why Garbage Collector doesn't collect Tasks objects
问题 especially when no live Thread reference it. I thought GC goes thought all .net threads to find references... Does it check references in other places too? EDIT: FOr instance let's imagine we are in a console app, the main calls a method that creates a local task1, then applies a task1.ContinueWith(task2) and returns to main, main do console.readline(). At this point it could be that task1 has finished, task2 still has not started a GC could start and no thread has a reference to task2. Why