If I have called multiple async functions that are still being awaited, and the program exits on the main thread, are the tasks still being awaited cleaned up automagically? Or, do I need to ensure tasks are manually cleaned up when the program exits?
Asking specifically when calling async functions, not using new Thread()
.
Also, in this specific case, Task
is referring to System.Threading.Tasks.Task
generated when calling an async
function and awaiting a result.
Can't seem to find the answer in MSDN (unless I'm looking in the wrong place).