<?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 Re: async usage in examples in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/async-usage-in-examples/m-p/132750#M3931</link>
    <description>&lt;P&gt;Thanks for your feedback Tzach! We will add more documentation for the examples.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2015 09:04:51 GMT</pubDate>
    <dc:creator>Qiming Y.</dc:creator>
    <dc:date>2015-12-03T09:04:51Z</dc:date>
    <item>
      <title>async usage in examples</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/async-usage-in-examples/m-p/132745#M3926</link>
      <description>&lt;P&gt;I have a question regarding the API v2 examples as a whole. All of the examples supplies use async calls. even for login. However you use task.wait() after the Task creation which essentially&amp;nbsp;makes the call synchronous as the program&amp;nbsp;waits for the&amp;nbsp;task to complete.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You use async threads if those threads do operations&amp;nbsp; that are independent of the main path or&amp;nbsp;other threads(not including sharing information from those threads). What is the idea behind using it to perform login and task.wait()?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:37:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/async-usage-in-examples/m-p/132745#M3926</guid>
      <dc:creator>Tzach K.</dc:creator>
      <dc:date>2019-05-29T09:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: async usage in examples</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/async-usage-in-examples/m-p/132746#M3927</link>
      <description>&lt;P&gt;Are you asking why the decision was made to use task.wait() in that case? I can't say off hand (since I didn't write the example), but if you have any particular feedback I'll be happy to send it along to the team.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 02:41:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/async-usage-in-examples/m-p/132746#M3927</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-12-02T02:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: async usage in examples</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/async-usage-in-examples/m-p/132747#M3928</link>
      <description>&lt;P&gt;Hi Gregory,&lt;/P&gt;
&lt;P&gt;I'm saying that the code example doesn't make sense. On one hand you are using async calls, but then you tell the main thread to wait for the async thread to finish, meaning you turned it into sync calls. Then why use async to begin with?&lt;/P&gt;
&lt;P&gt;The other thing I didn't get is why you display an async call for user login. How can this be an async call? you can't do anything before the user is logged in. Same goes for other examples you provide. All of them are async but with blocking task.wait and no explanation on why you used async.to begin with. Is it because you want to show a loading gif while waiting? then why block it?&lt;/P&gt;
&lt;P&gt;Thank you for your answer.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 05:34:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/async-usage-in-examples/m-p/132747#M3928</guid>
      <dc:creator>Tzach K.</dc:creator>
      <dc:date>2015-12-02T05:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: async usage in examples</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/async-usage-in-examples/m-p/132748#M3929</link>
      <description>&lt;P&gt;The sdk provides async interface to all api calls. The example is a simple console application so the main function has to wait for the top level async call to complete. But this is not equivalent to making every api call blocking. Although the top level async task is blocking, it can still contain multiple parallel running async tasks which are non-blocking. In general any function involves network call should be async so that we can call them in parallel for better IO utilization. The login function also falls into the same category.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 07:01:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/async-usage-in-examples/m-p/132748#M3929</guid>
      <dc:creator>Qiming Y.</dc:creator>
      <dc:date>2015-12-02T07:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: async usage in examples</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/async-usage-in-examples/m-p/132749#M3930</link>
      <description>&lt;P&gt;Hi Qiming,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We say the same thing. I agree that for network you want to use async calls.&lt;/P&gt;
&lt;P&gt;My main issue is that examples provided by DropBox should help developers understand how to build applications using your API. The explanation you provided in your answer is what needs to accompany your examples, or provide a full example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 17:09:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/async-usage-in-examples/m-p/132749#M3930</guid>
      <dc:creator>Tzach K.</dc:creator>
      <dc:date>2015-12-02T17:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: async usage in examples</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/async-usage-in-examples/m-p/132750#M3931</link>
      <description>&lt;P&gt;Thanks for your feedback Tzach! We will add more documentation for the examples.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 09:04:51 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/async-usage-in-examples/m-p/132750#M3931</guid>
      <dc:creator>Qiming Y.</dc:creator>
      <dc:date>2015-12-03T09:04:51Z</dc:date>
    </item>
  </channel>
</rss>

