OLD | NEW |
1 --- | 1 --- |
2 layout: default | 2 layout: default |
3 title: "Use Future-Based APIs" | 3 title: "Use Future-Based APIs" |
4 description: "A first look at Futures and how to use them to make your asynchron
ous code better." | 4 description: "A first look at Futures and how to use them to make your asynchron
ous code better." |
5 has-permalinks: true | 5 has-permalinks: true |
6 tutorial: | 6 tutorial: |
7 id: futures | 7 id: futures |
8 next: fetchdata/ | 8 next: cmdline/ |
9 next-title: "Fetch Data Dynamically" | 9 next-title: "Write Command-Line Apps" |
10 prev: polymer-intro/ | 10 prev: polymer-intro/ |
11 prev-title: "Define a Custom Element" | 11 prev-title: "Define a Custom Element" |
12 rel: | 12 rel: |
13 author: shailen-tuli | 13 author: shailen-tuli |
14 --- | 14 --- |
15 | 15 |
16 {% capture whats_the_point %} | 16 {% capture whats_the_point %} |
17 | 17 |
18 * Dart is single-threaded. | 18 * Dart is single-threaded. |
19 * Synchronous code can make your program freeze. | 19 * Synchronous code can make your program freeze. |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 uses a Future when doing an HTTP request. | 272 uses a Future when doing an HTTP request. |
273 | 273 |
274 * The example featured in | 274 * The example featured in |
275 [Use IndexedDB](/docs/tutorials/indexeddb/) | 275 [Use IndexedDB](/docs/tutorials/indexeddb/) |
276 uses many Futures when interacting with the database. | 276 uses many Futures when interacting with the database. |
277 | 277 |
278 {% endcapture %} | 278 {% endcapture %} |
279 | 279 |
280 {% include tutorial.html %} | 280 {% include tutorial.html %} |
281 | 281 |
OLD | NEW |