c# - With tasks, continueWith and WhenAll(), when continue, when finish task or when finish ConitueWith? -


i have few tasks each 1 has continuewith use result of task. that:

task mytask01 = mymethod01async().continuewith((a) => //do somenthing  a.result);  task mytask02 = mymethod02async().continuewith((a) => //do somenthing a.result);  task.whenall(mytask01, mytask02); 

i know whenall waits until tasks in paramaters done. in case have continuewith, don't know if whenall waits untill continuewith finished or continue when task01 , task02 finish, code continue although continuewith code still running.

continuewith returns new task, using task. whenall, in fact waiting tasks returned continuewith , not mymethod01async , mymethod02async.

so yes, task. whenall wait code inside continuewith finish.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -