Task Factory | Running after form exits
I thought the following task would continue in the background when the
form it is loaded from has finished but it doesn't seem to be the case.
Here's how I call the task:
var regenerateTask = Task.Factory.StartNew(state => populateCache(),
"PopulateCache");
When the loading form completes, the task seems to exit gracefully.
Any ideas why?
No comments:
Post a Comment