2018-01-19 01:11:34 -08:00
|
|
|
[](LICENSE)
|
2018-06-04 15:03:54 -07:00
|
|
|
[](https://travis-ci.org/google/promises)
|
2018-08-01 11:06:14 -04:00
|
|
|
[](https://gitter.im/google/promises)
|
2018-02-27 23:14:23 -08:00
|
|
|
|
2018-02-27 23:11:14 -08:00
|
|
|

|
|
|
|
|

|
2018-02-27 23:14:23 -08:00
|
|
|

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