1 |
efrain |
1 |
[](LICENSE)
|
|
|
3 |
[](https://travis-ci.org/google/promises)
|
|
|
4 |
[](https://gitter.im/google/promises)
|
|
|
5 |
|
|
|
6 |

|
|
|
7 |

|
|
|
8 |

|
|
|
9 |
|
|
|
10 |
# Promises
|
|
|
11 |
|
|
|
12 |
Promises is a modern framework that provides a synchronization construct for
|
|
|
13 |
Objective-C and Swift to facilitate writing asynchronous code.
|
|
|
14 |
|
|
|
15 |
* [Introduction](g3doc/index.md)
|
|
|
16 |
* [The problem with async
|
|
|
17 |
code](g3doc/index.md#the-problem-with-async-code)
|
|
|
18 |
* [Promises to the rescue](g3doc/index.md#promises-to-the-rescue)
|
|
|
19 |
* [What is a promise?](g3doc/index.md#what-is-a-promise)
|
|
|
20 |
* [Framework](g3doc/index.md#framework)
|
|
|
21 |
* [Features](g3doc/index.md#features)
|
|
|
22 |
* [Benchmark](g3doc/index.md#benchmark)
|
|
|
23 |
* [Getting started](g3doc/index.md#getting-started)
|
|
|
24 |
* [Add dependency](g3doc/index.md#add-dependency)
|
|
|
25 |
* [Import](g3doc/index.md#import)
|
|
|
26 |
* [Adopt](g3doc/index.md#adopt)
|
|
|
27 |
* [Basics](g3doc/index.md#basics)
|
|
|
28 |
* [Creating promises](g3doc/index.md#creating-promises)
|
|
|
29 |
* [Async](g3doc/index.md#async)
|
|
|
30 |
* [Do](g3doc/index.md#do)
|
|
|
31 |
* [Pending](g3doc/index.md#pending)
|
|
|
32 |
* [Resolved](g3doc/index.md#create-a-resolved-promise)
|
|
|
33 |
* [Observing fulfillment](g3doc/index.md#observing-fulfillment)
|
|
|
34 |
* [Then](g3doc/index.md#then)
|
|
|
35 |
* [Observing rejection](g3doc/index.md#observing-rejection)
|
|
|
36 |
* [Catch](g3doc/index.md#catch)
|
|
|
37 |
* [Extensions](g3doc/index.md#extensions)
|
|
|
38 |
* [All](g3doc/index.md#all)
|
|
|
39 |
* [Always](g3doc/index.md#always)
|
|
|
40 |
* [Any](g3doc/index.md#any)
|
|
|
41 |
* [AwaitPromise](g3doc/index.md#awaitpromise)
|
|
|
42 |
* [Delay](g3doc/index.md#delay)
|
|
|
43 |
* [Race](g3doc/index.md#race)
|
|
|
44 |
* [Recover](g3doc/index.md#recover)
|
|
|
45 |
* [Reduce](g3doc/index.md#reduce)
|
|
|
46 |
* [Retry](g3doc/index.md#retry)
|
|
|
47 |
* [Timeout](g3doc/index.md#timeout)
|
|
|
48 |
* [Validate](g3doc/index.md#validate)
|
|
|
49 |
* [Wrap](g3doc/index.md#wrap)
|
|
|
50 |
* [Advanced topics](g3doc/index.md#advanced-topics)
|
|
|
51 |
* [Default dispatch queue](g3doc/index.md#default-dispatch-queue)
|
|
|
52 |
* [Ownership and retain
|
|
|
53 |
cycles](g3doc/index.md#ownership-and-retain-cycles)
|
|
|
54 |
* [Testing](g3doc/index.md#testing)
|
|
|
55 |
* [Objective-C <-> Swift
|
|
|
56 |
interoperability](g3doc/index.md#objective-c---swift-interoperability)
|
|
|
57 |
* [Dot-syntax in Objective-C](g3doc/index.md#dot-syntax-in-objective-c)
|
|
|
58 |
* [Anti-patterns](g3doc/index.md#anti-patterns)
|
|
|
59 |
* [Broken chain](g3doc/index.md#broken-chain)
|
|
|
60 |
* [Nested promises](g3doc/index.md#nested-promises)
|