You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
3.0 KiB

5 years ago
  1. [![Apache
  2. License](https://img.shields.io/github/license/google/promises.svg)](LICENSE)
  3. [![Travis](https://api.travis-ci.org/google/promises.svg?branch=master)](https://travis-ci.org/google/promises)
  4. [![Gitter Chat](https://badges.gitter.im/google/promises.svg)](https://gitter.im/google/promises)
  5. ![Platforms](https://img.shields.io/badge/platforms-macOS%20%7C%20iOS%20%7C%20tvOS%20%7C%20watchOS-blue.svg?longCache=true&style=flat)
  6. ![Languages](https://img.shields.io/badge/languages-Swift%20%7C%20ObjC-orange.svg?longCache=true&style=flat)
  7. ![Package Managers](https://img.shields.io/badge/supports-Bazel%20%7C%20SwiftPM%20%7C%20CocoaPods%20%7C%20Carthage-yellow.svg?longCache=true&style=flat)
  8. # Promises
  9. Promises is a modern framework that provides a synchronization construct for
  10. Objective-C and Swift to facilitate writing asynchronous code.
  11. * [Introduction](g3doc/index.md)
  12. * [The problem with async
  13. code](g3doc/index.md#the-problem-with-async-code)
  14. * [Promises to the rescue](g3doc/index.md#promises-to-the-rescue)
  15. * [What is a promise?](g3doc/index.md#what-is-a-promise)
  16. * [Framework](g3doc/index.md#framework)
  17. * [Features](g3doc/index.md#features)
  18. * [Benchmark](g3doc/index.md#benchmark)
  19. * [Getting started](g3doc/index.md#getting-started)
  20. * [Add dependency](g3doc/index.md#add-dependency)
  21. * [Import](g3doc/index.md#import)
  22. * [Adopt](g3doc/index.md#adopt)
  23. * [Basics](g3doc/index.md#basics)
  24. * [Creating promises](g3doc/index.md#creating-promises)
  25. * [Async](g3doc/index.md#async)
  26. * [Do](g3doc/index.md#do)
  27. * [Pending](g3doc/index.md#pending)
  28. * [Resolved](g3doc/index.md#create-a-resolved-promise)
  29. * [Observing fulfillment](g3doc/index.md#observing-fulfillment)
  30. * [Then](g3doc/index.md#then)
  31. * [Observing rejection](g3doc/index.md#observing-rejection)
  32. * [Catch](g3doc/index.md#catch)
  33. * [Extensions](g3doc/index.md#extensions)
  34. * [All](g3doc/index.md#all)
  35. * [Always](g3doc/index.md#always)
  36. * [Any](g3doc/index.md#any)
  37. * [Await](g3doc/index.md#await)
  38. * [Delay](g3doc/index.md#delay)
  39. * [Race](g3doc/index.md#race)
  40. * [Recover](g3doc/index.md#recover)
  41. * [Reduce](g3doc/index.md#reduce)
  42. * [Retry](g3doc/index.md#retry)
  43. * [Timeout](g3doc/index.md#timeout)
  44. * [Validate](g3doc/index.md#validate)
  45. * [Wrap](g3doc/index.md#wrap)
  46. * [Advanced topics](g3doc/index.md#advanced-topics)
  47. * [Default dispatch queue](g3doc/index.md#default-dispatch-queue)
  48. * [Ownership and retain
  49. cycles](g3doc/index.md#ownership-and-retain-cycles)
  50. * [Testing](g3doc/index.md#testing)
  51. * [Objective-C <-> Swift
  52. interoperability](g3doc/index.md#objective-c---swift-interoperability)
  53. * [Dot-syntax in Objective-C](g3doc/index.md#dot-syntax-in-objective-c)
  54. * [Anti-patterns](g3doc/index.md#anti-patterns)
  55. * [Broken chain](g3doc/index.md#broken-chain)
  56. * [Nested promises](g3doc/index.md#nested-promises)