<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic dojo.deferred equivalent in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/dojo-deferred-equivalent/m-p/750450#M16578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I feel like I'm missing something blatantly obvious, but does anybody know what the equivalent of a dojo deferred object is in FLEX.&amp;nbsp; Basically, I have multiple different async calls and want to know when they are all complete so I can process their results collectively together.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas would be greatly appreciated&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Dec 2011 02:24:00 GMT</pubDate>
    <dc:creator>HaroldBostic</dc:creator>
    <dc:date>2011-12-29T02:24:00Z</dc:date>
    <item>
      <title>dojo.deferred equivalent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/dojo-deferred-equivalent/m-p/750450#M16578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I feel like I'm missing something blatantly obvious, but does anybody know what the equivalent of a dojo deferred object is in FLEX.&amp;nbsp; Basically, I have multiple different async calls and want to know when they are all complete so I can process their results collectively together.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas would be greatly appreciated&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 02:24:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/dojo-deferred-equivalent/m-p/750450#M16578</guid>
      <dc:creator>HaroldBostic</dc:creator>
      <dc:date>2011-12-29T02:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: dojo.deferred equivalent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/dojo-deferred-equivalent/m-p/750451#M16579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Harold,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; The way I normally handle this is to have each returned async process set a unique boolean var and at the same time check if all the other boolean vars are true. If all are true then execute a final function. Someone out there may know of a better way though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 11:20:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/dojo-deferred-equivalent/m-p/750451#M16579</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-12-29T11:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: dojo.deferred equivalent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/dojo-deferred-equivalent/m-p/750452#M16580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;To add to Robert's comments. I've also used a global ArrayCollection that keeps track of each request token. Then with each response I check the ArrayCollection to see if all the tokens have come back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've had a couple requests related how to do an asynchronous (tokenized) HTTP request in Flex, so here's a link to a blog post: &lt;/SPAN&gt;&lt;A href="http://blog.andygup.net/?p=460"&gt;http://blog.andygup.net/?p=460&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri Developer Network&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jan 2012 18:40:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/dojo-deferred-equivalent/m-p/750452#M16580</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2012-01-09T18:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: dojo.deferred equivalent</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/dojo-deferred-equivalent/m-p/750453#M16581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to auto-populate a couple area attributes after editing with the flex viewer (Acres and Sq Km). Since the areas need to be as accurate as possible i am projecting the geometry before sending it to the areasAndLengths() function. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem i am having is i do not seems to be able to wait for the second Async response from the areasAndLengths() function to complete. I set up both the project result handler and the areasAndLengths result handler to return a boolean value as recommended but my application times out when waiting for the areasAndLengths to complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am calling the project function from the selection complete function as recommended in previous post here (&lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/23497-EditTool-Autopopulate-Fields?highlight=autopopulate"&gt;http://forums.arcgis.com/threads/23497-EditTool-Autopopulate-Fields?highlight=autopopulate&lt;/A&gt;&lt;SPAN&gt;) and using the area and length code from the samples. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions or code samples to test if both have functions have completed are greatly appreciated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Considering an SOE or GP task but that seems to be overkill since these are both capabilities of the server in already. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much for your time and any assistance, as always i am happy to promote any helpful answers .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 15:54:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/dojo-deferred-equivalent/m-p/750453#M16581</guid>
      <dc:creator>DanielSmith</dc:creator>
      <dc:date>2012-08-08T15:54:29Z</dc:date>
    </item>
  </channel>
</rss>

