I\'ve been learning to use TPL and have an issue with an example I gathered from this article. I copy and pasted the code exactly as in the Task.Run example but get an error
Your try/catch runs an async operation, thus does not hold the async operation, since the code is not guaranteed to be at that location when the exception is hit. Try including the try/catch within the Task.Run(() => {..});