<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : How to wait for parallel tasks to complete</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : How to wait for parallel tasks to complete</description>
  <pubDate>Sun, 12 Apr 2026 22:23:23 -700</pubDate>
  <lastBuildDate>Wed, 28 Dec 2011 11:00:58 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=3175</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>How to wait for parallel tasks to complete : I see. Then I suggest that you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3175&amp;PID=12335#12335</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3175<br /><strong>Posted:</strong> 28-Dec-2011 at 11:00am<br /><br />I see. Then I suggest that you continue your discussion with Marcel or one of our Professional Services consultants as I'm afraid this question can lead outside the scope of this forum.]]>
   </description>
   <pubDate>Wed, 28 Dec 2011 11:00:58 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3175&amp;PID=12335#12335</guid>
  </item> 
  <item>
   <title>How to wait for parallel tasks to complete : Denis, thanks for the reply. In...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3175&amp;PID=12306#12306</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1132" rel="nofollow">mickan</a><br /><strong>Subject:</strong> 3175<br /><strong>Posted:</strong> 23-Dec-2011 at 8:53am<br /><br />Denis, thanks for the reply.&nbsp; In this case I can't do that as the completion code is effecitvely the rest of the application.<DIV>&nbsp;</DIV><DIV>I just happened to have a chat with Marcel later yesterday and I raised this question.&nbsp; He suggested running the setup code on a different thread and blocking the UI thread on the completion event once the initialization had proceeded as far as it could go without waiting.</DIV><DIV>&nbsp;</DIV><DIV>I'm still not convinced I understand async sufficiently well, and that perhaps I should be completely restructuring the app initialization as async, but this seems rather drastic, not to mention challenging in a large composite app.</DIV>]]>
   </description>
   <pubDate>Fri, 23 Dec 2011 08:53:08 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3175&amp;PID=12306#12306</guid>
  </item> 
  <item>
   <title>How to wait for parallel tasks to complete : Hi mickan,Is it possible to move...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3175&amp;PID=12303#12303</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=912" rel="nofollow">DenisK</a><br /><strong>Subject:</strong> 3175<br /><strong>Posted:</strong> 22-Dec-2011 at 6:28pm<br /><br />Hi mickan,<div><br></div><div>Is it possible to move the query block inside the Coroutine's completed event?</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>var coop = Coroutine.StartParallel(Tasks);</div><div>coop.Completed += (s, args) =&gt; {</div><div>&nbsp; &nbsp; //Query the data here</div><div>};</div><div></pre></td></tr></table></div>]]>
   </description>
   <pubDate>Thu, 22 Dec 2011 18:28:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3175&amp;PID=12303#12303</guid>
  </item> 
  <item>
   <title>How to wait for parallel tasks to complete : In my initialization routine I...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=3175&amp;PID=12302#12302</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1132" rel="nofollow">mickan</a><br /><strong>Subject:</strong> 3175<br /><strong>Posted:</strong> 22-Dec-2011 at 1:03pm<br /><br />In my initialization routine I want to set off a bunch of startup "tasks" using the parallel coroutine mechanism.&nbsp; Then I can go away and do other stuff on the UI thread. Great.<DIV>&nbsp;</DIV><DIV>But, once I'm done with this "other stuff" I mustn't continue with the app until the parallel tasks are completed.&nbsp; How should I wait (that is, block) at that point?</DIV><DIV>&nbsp;</DIV><DIV>In case you're wondering, the rough working example is loading a bunch of reference data into the EM.&nbsp; I don't want to query the data in the app until I know its been loaded.&nbsp; So the plan is to block until it is, having fired off all of the startup tasks and performed other sundry setup (not all of which involving DevForce).</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 22 Dec 2011 13:03:30 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=3175&amp;PID=12302#12302</guid>
  </item> 
 </channel>
</rss>