Skip to content

Commit 1fa924f

Browse files
committed
Edit README
1 parent 0207de8 commit 1fa924f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,9 @@ idCache.whenCached { id in
287287

288288
### Compose Promises
289289

290-
Inspired by PromiseKit, SwiftObserver allows to compose asynchronous calls using promises. You can chain asynchronous calls sequentially:
290+
Inspired by PromiseKit, SwiftObserver allows to compose asynchronous calls using promises.
291+
292+
#### Sequential Composition
291293

292294
```swift
293295
promise { // just for nice consistent closure syntax
@@ -303,7 +305,7 @@ promise { // just for nice consistent closure syntax
303305

304306
You call `then` on a first `Promise` and pass it a closure that returns the second `Promise`. That closure takes the value of the first promise, allowing the second promise to depend on it. `then` returns a new `Promise` that provides the value of the second promise.
305307

306-
And you can start asynchronous calls concurrently:
308+
#### Concurrent Composition
307309

308310
```swift
309311
promise {

0 commit comments

Comments
 (0)