Max Howell
9f494dd1c3
Merge pull request #1080 from mxcl/v7-xcode11
...
Support Xcode 11 / Swift 5.1
2019-07-09 18:52:15 -04:00
Max Howell
9a08dcc512
Support Xcode 11 / Swift 5.1
2019-07-09 17:23:08 -04:00
Max Howell
216ba58be7
Make tests work with Xcode 11
2019-06-11 13:09:41 -04:00
Max Howell
e4f52c22d6
Specify SwiftPM instructions
2019-06-11 12:48:18 -04:00
Garth Snyder
a8f2e9b739
Merge pull request #1050 from dougzilla32/v7
...
CancellablePromise bridge initializer should run 'catch' on CurrentThreadDispatcher()
2019-04-24 12:31:18 -07:00
Doug Stein
ca4ee531ef
Fix for #1049 : Some tests seem to depend on dispatching that PromiseKit should perhaps not be doing
...
The cancellable promise bridge now runs 'catch' on the current thread dispatcher.
Updated tests for the change.
2019-04-20 15:21:45 -07:00
Max Howell
cd1a9b83ab
Merge pull request #1045 from GarthSnyder/wrapper-revamp
...
Wrapper revamp
2019-04-11 22:16:02 -04:00
Garth Snyder
c52bca7258
Fix a couple of incorrect map vs. return wrapper settings
2019-04-08 09:55:34 -07:00
Garth Snyder
46517fee00
Duplicate Nathan's partial-catch updates for cancellable promises, update tests
2019-04-07 23:11:35 -07:00
Nathan Hosselton
43394a7fe7
Include error param in catch/recover(only:) bodies
...
rolls back 193ecbc1
2019-04-07 22:16:38 -07:00
Nathan Hosselton
342c059a46
Allow throwing from recover(only: E) closures
2019-04-07 22:16:33 -07:00
Nathan Hosselton
f634434ad0
Require parameter name only:
...
so…
`catch(Error.value)` -> `catch(only: Error.value)`
2019-04-07 22:16:27 -07:00
Garth Snyder
b8c82085bc
Regenerate Linux testing manifests
2019-04-07 22:00:06 -07:00
Garth Snyder
3e21581aba
Make Dispatcher type implementation classes final
2019-04-07 21:42:59 -07:00
Garth Snyder
cc117234db
Test full set of API wrappers for both standard and cancellable promises
2019-04-07 21:42:59 -07:00
Garth Snyder
bc28be9e91
Use CurrentThreadDispatcher directly in case where exact type isn't known
2019-04-07 21:42:59 -07:00
Garth Snyder
a10e6ea8dc
Systematize wrappers, omit duplication, move to subdirectory
2019-04-07 21:42:59 -07:00
Garth Snyder
43662ff267
Allow recover() closures to throw even on specific error
2019-04-07 21:42:20 -07:00
Garth Snyder
71ffdce045
Add cauterize() for cascading finalizers
2019-04-07 21:42:20 -07:00
Garth Snyder
a64f4c24c8
Edit inline documentation for catchables
2019-04-07 21:42:20 -07:00
Garth Snyder
0ca0b8bc28
Move cancellation-related implementation files to subdirectory
2019-04-07 21:42:20 -07:00
Garth Snyder
3cfc3a7893
Rename CancellableTask.swift to Cancellable.swift (match protocol)
2019-04-07 21:42:20 -07:00
Max Howell
ed7c6bcdf1
Add Accio to spelling skips
2019-04-07 21:45:04 -04:00
Max Howell
a8715931a9
Merge pull request #1031 from mxcl/v7-travis-swift-5-GM
...
[travis] Swift 5 GM; Fix Linux compile
2019-04-07 17:10:58 -04:00
Max Howell
7600e18972
[travis] Swift 5 GM; Fix Linux compile
2019-04-07 17:10:56 -04:00
Max Howell
4c09a115e5
Merge pull request #1028 from dougzilla32/v7
...
'Cancel' for PromiseKit: add cancellable variants for #1024 , & doc
2019-04-07 17:10:41 -04:00
Doug Stein
f1885f3d4f
'Cancel' for PromiseKit: add cancellable variants for #1024 , plus doc update
...
* Add cancellable variants and cancellable dispatcher stubs for all new methods introduced by #1024
* Update Troubleshooting doc with solution for compilation timeouts, encountered primarily with cancellable promises
2019-04-07 17:10:40 -04:00
Max Howell
c7b2bd1657
[ci skip] Fix deploy
2019-04-07 16:32:19 -04:00
Max Howell
3729b5a23e
Merge pull request #1024 from nathanhosselton/v7
...
v7 catch(only:) and recover(only:)
2019-04-07 16:26:09 -04:00
Nathan Hosselton
4692135d97
Update for v7 and regenerate Core/XCTestManifests
...
- remove `flags:` function params
- DispatchQueue? -> Dispatcher for `on:` params
- conf.Q -> conf.D for default `on:` values
- update Result case usage to `success` `failure`
- on.async(flags:) -> on.dispatch
2019-04-07 16:26:09 -04:00
Nathan Hosselton
78818516c5
Rename catchOnly -> catch, recoverOnly -> recover
2019-04-07 16:26:09 -04:00
Nathan Hosselton
4a8c2487d9
Forgot to pass ()
2019-04-07 16:26:09 -04:00
Nathan Hosselton
a09eb08b32
Remove examples from docs on void recoverOnly
2019-04-07 16:26:08 -04:00
Nathan Hosselton
9e4b9be0d5
Provide Promise<Void>.recoverOnly variants
2019-04-07 16:26:08 -04:00
Nathan Hosselton
2078574b14
test coverage ++
2019-04-07 16:26:08 -04:00
Nathan Hosselton
b286d7bd36
Documentation tweaks and test simplification
2019-04-07 16:26:08 -04:00
Nathan Hosselton
d91425dec3
Provide recoverOnly for specific error recovery
2019-04-07 16:26:07 -04:00
Nathan Hosselton
dd83de89fc
Rename generic parameter Error to E
2019-04-07 16:26:07 -04:00
Nathan Hosselton
eddafa8e8e
Allow specifying a CatchPolicy in catchOnly(Type)
...
Because for this error type accepting variant of
catchOnly it makes sense to want to not catch
specific cancellable cases in the type.
2019-04-07 16:26:07 -04:00
Nathan Hosselton
bd0a551392
Remove error param from catchOnly(object) handler
...
Rationale: Since this variant takes a specific
error object, it does not need checked against in
handler and is therefore likely to be explicitly
ignored (`_ in`). Thus removing the object removes
the need for this.
2019-04-07 16:26:07 -04:00
Max Howell
f6242108a6
Merge pull request #1027 from dougzilla32/v7
...
'Cancel' for PromiseKit: fix for #1026 , plus cleanup
2019-04-07 16:26:06 -04:00
Nathan Hosselton
1495d68f77
Obfuscate catchOnly's promise behind a finalizer
2019-04-07 16:26:06 -04:00
Doug Stein
087f066492
'Cancel' for PromiseKit: fix for #1026 , plus cleanup
...
* Fix "Typechecking timeout compiling tests in v7 #1026 " by specifying the closure return type in DispatcherTests
* Remove unnecessary "#if swift" checks in the cancellable code and tests
2019-04-07 16:26:06 -04:00
Nathan Hosselton
b06d7e59ed
Provide catchOnly(…) for specific error handling
2019-04-07 16:26:06 -04:00
Max Howell
34e31140dc
Merge pull request #1022 from GarthSnyder/dispatcher-cleanup
...
Dispatchers cleanup
2019-04-07 16:26:05 -04:00
Garth Snyder
4ff28fad6c
Moved dispatcher implementations to subdirectory
2019-04-07 16:26:05 -04:00
Garth Snyder
5e3fe21423
Update test manifests
2019-04-07 16:26:05 -04:00
Garth Snyder
c68af9f021
Add wrappers for DispatchQueue compatibility to Dispatchers
2019-04-07 16:26:05 -04:00
Garth Snyder
ed6a108e56
Access control rationalization for dispatchers
2019-04-07 16:25:32 -04:00
Doug
2b90cb3d4e
'Cancel' for PromiseKit ( #899 )
...
This patch adds the concept of a `CancelContext` to PromiseKit allowing chains to handle cancellation properly for each independent promise after the cancel point.
2019-04-07 16:25:31 -04:00