Presently I'm using BackGroundWorker(s) to do calculations which may take a long time (calculating a BackGroundImage, calculating the next simulation-step for objects ...). The result of each BGW is used whenever ready (i.e. if the information is used before ready/updated the older information is used).
Should I better use Tasks in such a scenario?
I far as I understand the documentation, I would expect a better performance using Tasks.
I did some experimentation, however I can't seem to find the correct implementation in order to let the main process (the GUI) continue with waiting the Tasks to complete. Do I realy have to use the .Wait Method in order to get any result from my Task? Isn't there a way to get the results of a Task without .Wait (like an Event TaskCompleted)?




Reply With Quote