Commit Graph

13 Commits

Author SHA1 Message Date
Garth Snyder
2b88cac8e0 Doc headings to title case, no Oxford commas 2018-06-27 10:50:56 -07:00
Garth Snyder
fecf4f8430 Documentation copy editing, add more RxSwift info, fix asVoid() example 2018-06-17 15:37:09 -07:00
Max Howell
69459cfe7e
Update Appendix.md 2018-05-03 22:46:05 -05:00
Max Howell
2803fb73c4 [ci skip] Add reference about starting in background
Refs #743
2018-02-25 20:26:48 -05:00
Max Howell
5840fa998d [ci skip] Add wait to the Appendix 2018-02-23 15:23:16 -05:00
Max Howell
3b8c29f646 [ci skip] Title second section 2018-02-23 00:45:53 -05:00
Max Howell
3075d99710 [ci skip] Add common use of asVoid() to appendix 2018-02-23 00:40:14 -05:00
Max Howell
dcd44ef1e2 [ci skip] Chaining animations 2018-02-22 12:35:33 -05:00
Max Howell
b585f7cdc7 [ci skip] Update FAQ 2018-02-18 17:29:10 -05:00
Max Howell
17587be4ac PromiseKit 6.0.0
This because `Promise(value:)` is selected for PMK-4’s pending initializer due to trailing closure syntax and the fact that `T` could be anything. I guess this isn’t a Swift bug, but geez.

This is a real problem for people migrating to 5 from 4, such that I have decided 5 must be deprecated.

The severity is due to Swift giving a very misleading error diagnostic when it uses `Promise(value:)`, because as you can guess you end up with:

    Promise<(T->Void, Error->Void)>

As your inferred type.

Because we no longer have ambiguity between `Promise { seal in` and `Promise(value:` I have removed the `.pending` parameter for that usage which will also aid migration.

In some cases this leads to less nice code, but mostly it’s fine due to being able to do `.value(1)` where `Promise` can be inferred. The trade off is worth it though as PromiseKit should be delightful to use and as it stands, it is a pain due to how Swift is.
2018-02-10 17:23:27 -05:00
Max Howell
c82c094f83 Not error, but catch 2017-07-06 19:42:49 -04:00
Max Howell
8690c88976 Add typical Promise<Foo?> misusage 2017-06-29 15:07:38 -04:00
Max Howell
212f31f418 Move documentation to master 2017-06-26 15:40:13 -04:00