promises icon indicating copy to clipboard operation
promises copied to clipboard

Promises is a modern framework that provides a synchronization construct for Swift and Objective-C.

Apache
License Travis Gitter Chat

Platforms Languages Package Managers

Promises

Promises is a modern framework that provides a synchronization construct for Objective-C and Swift to facilitate writing asynchronous code.

  • Introduction
    • The problem with async code
    • Promises to the rescue
    • What is a promise?
  • Framework
    • Features
    • Benchmark
  • Getting started
    • Add dependency
    • Import
    • Adopt
  • Basics
    • Creating promises
      • Async
      • Do
      • Pending
      • Resolved
    • Observing fulfillment
      • Then
    • Observing rejection
      • Catch
  • Extensions
    • All
    • Always
    • Any
    • AwaitPromise
    • Delay
    • Race
    • Recover
    • Reduce
    • Retry
    • Timeout
    • Validate
    • Wrap
  • Advanced topics
    • Default dispatch queue
    • Ownership and retain cycles
    • Testing
    • Objective-C <-> Swift interoperability
    • Dot-syntax in Objective-C
  • Anti-patterns
    • Broken chain
    • Nested promises