Promises is a modern framework that provides a synchronization construct for Swift and Objective-C.
Last updated Jun 25, 2026
3.8k
Stars
313
Forks
42
Issues
0
Stars/day
Attention Score
95
Language breakdown
Objective-C 58.2%
Swift 39.8%
Starlark 1.1%
Ruby 0.8%
โธ Files
click to expand
README
Promises
Promises is a modern framework that provides a synchronization construct for Objective-C and Swift to facilitate writing asynchronous code.
* The problem with async code * Promises to the rescue * What is a promise? * Features * Benchmark * Add dependency * Import * Adopt * Creating promises * Async * Do * Pending * Resolved * Observing fulfillment * Then * Observing rejection * Catch * All * Always * Any * AwaitPromise * Delay * Race * Recover * Reduce * Retry * Timeout * Validate * Wrap * Default dispatch queue * Ownership and retain cycles * Testing * Objective-C <-> Swift interoperability * Dot-syntax in Objective-C * Broken chain * Nested promises๐ More in this category