Commit Graph

246 Commits

Author SHA1 Message Date
Skoti
93a098f33b correcting and aligning documentation regarding resolve and fulfill usages 2019-08-10 16:56:26 +02:00
Roman Podymov
ee961e1f59
Update AnyPromise.swift 2019-06-28 12:03:32 +02:00
Roman Podymov
0452552590
Update AnyPromise.m 2019-06-28 12:02:03 +02:00
Roman Podymov
fbe6decc6e
Update AnyPromise.h 2019-06-28 12:00:52 +02:00
Igor Palaguta
9f9f1f9e89 Add guarantee sequence utils 2019-06-17 17:45:55 +02:00
Max Howell
74402dcaae Fix for Swift 5 in 4.2 mode on Linux 2019-04-07 12:56:40 -04:00
Max Howell
60215282b6
[travis] Swift 5 GM; Fixes Linux build 2019-03-25 21:37:03 -04:00
Max Howell
69b112b28e
Deprecate promisekit.org
[ci skip]
2019-02-11 19:44:11 -05:00
Max Howell
716f9c2d24 Update documentation links
[skip ci]

Fixes #1008
2019-02-05 15:41:58 -05:00
Max Howell
6264f6f41e Fixes #1001
The box can outlive its Guarantee, and usually this is what happens. Thus we have to log in the box and not in the Guarantee itself.
2019-01-28 15:39:57 -05:00
repo-ranger[bot]
c531710216
Merge pull request #991 from mxcl/fixes-990
Reverts #963 due to ambiguity (see #990)
2019-01-23 23:01:25 +00:00
Max Howell
1c958cfdb6
Reverts #963 due to ambiguity (see #990) 2019-01-23 17:19:00 -05:00
Neal Lester
ecb719a441 Log when unfulfilled guarantee is deallocated
* Fixed bug where pendingPromiseDeallocated event was incorrectly reported as a waitOnMainThread event.
* Now logs if a Guarantee is deallocated before it has been fulfilled.
2019-01-23 14:04:53 -05:00
yifans
3bb8e86c27 docs: fix 'after' docs position 2019-01-19 11:18:24 +08:00
Max Howell
8054c287cf Warnings fixes for Swift 5 2018-12-23 10:44:52 +00:00
Neal Lester
5bb2aae8cc Fixed bug where pendingPromiseDeallocated event was incorrectly repor… (#972)
* Fixed bug where pendingPromiseDeallocated event was incorrectly reported as a waitOnMainThread event. Added test which should have caught this bug in the first place.

* Kick Travis CI
2018-12-14 16:47:17 +00:00
Max Howell
5b72d28396 Rename loggingClosure to logHandler
This is more consistent with Apple API naming.
2018-12-04 15:01:48 -05:00
Max Howell
e9f3df1cab Tidy 2018-12-04 15:01:07 -05:00
Max Howell
b0d3223d98 Rename 2018-12-04 15:00:43 -05:00
Neal Lester
a5ab1ea5b3 Added facilities for controlling console output
Refs #961
2018-12-04 14:48:58 -05:00
Max Howell
4e78705bac Keep code-coverage up; Keep docs coverage up 2018-11-29 12:54:13 -05:00
Lars Stegman
33e7eba60b Create fulfill function for void promises
I find it annoying to have to add a Void value every time I need to fulfill a Void promise. It can also be confusing how to fulfill Void promises for people who are not familiar with how to instantiate a Void value.
2018-11-29 10:14:24 +01:00
Max Howell
a7fea1ba9f
Update Configuration.swift 2018-11-24 17:57:27 -05:00
Max Howell
41699e222d Use final where possible
Allows the optimizer to remove dynamic dispatch, being `public` rather than `open` is not enough.

https://twitter.com/mxcl/status/1060222414829838336
2018-11-07 13:04:01 -05:00
Max Howell
4ff9962082 SKError still is not a real Error, hard-code these
Not ideal, but there’s also no harm in it.
2018-10-02 17:08:38 -04:00
Max Howell
1f3564887e
Clarify when(resolved:) behavior 2018-09-27 13:37:40 -04:00
markus.fassbender
2c44682f44 implement guarantee get 2018-06-27 14:12:09 +02:00
Igor Palaguta
e88d30e150 fix tap documentation comments 2018-06-21 16:41:16 +03:00
Igor Palaguta
59fb55e886 Tap should perform body on specified queue, or on queue from configuration 2018-06-21 16:11:02 +03:00
Max Howell
b96bb7be4b Add firstValue(where:) 2018-06-17 14:10:51 -04:00
Max Howell
6d75d00791 Return the PMKFinalizer from cauterize() 2018-06-17 14:10:51 -04:00
mayurdzk
4b4b30e19a Accept a queue in finally() 2018-06-15 21:17:48 +05:30
Max Howell
d427b29dd7 Allow specifying DispatchWorkItemFlags; Tag 6.3.0
This has recently become useful to me, though this is for experienced users only.
2018-06-10 13:24:26 -04:00
Max Howell
fd5d23c43d Fix doc comment 2018-06-10 12:32:25 -04:00
Derek Clarkson
bb3b294434 Converting to use a fatalError if an error is actually thrown. 2018-06-10 18:38:27 +10:00
Derek Clarkson
35cdf54a81 Removing throws support as not needed. 2018-06-10 00:01:20 +10:00
Derek Clarkson
89c58298a1 Guarantee then map 2018-06-09 22:27:00 +10:00
Ivanov Anton
2d2729f508
Fixed build error in AnyPromise.m
When installing PromiseKit 6 as a static library via CocoaPods.
The problem is described in the following issue - https://github.com/mxcl/PromiseKit/issues/825.
2018-05-16 17:25:21 +07:00
Geordie J
f31ee94ed6
Fix build issue in hang.swift 2018-05-15 17:58:07 +02:00
Max Howell
52c1d2e26d Complete documentation 2018-05-04 22:25:34 -04:00
Max Howell
14b8506adb Fix ensureThen documentation; Tag 6.2.5 2018-04-20 15:59:52 -04:00
Max Howell
c667ec78cc Add ensureThen
Couldn’t have two variants of `ensure` without the dreaded ambiguity issues.

Sadly Swift cannot infer the type for multiline closures where there are two possible functions for it to match. :(
2018-04-19 21:43:12 -04:00
zhuhao
6a0d8ceeba [ObjC] Fix error leak 2018-04-19 17:21:35 +08:00
Colin T.A. Gray
6f20a190c3 Allow setting nil for conf.Q 2018-04-04 23:21:26 -04:00
Max Howell
186439d480 This doesn’t lint when Foundation subspec inc’d
Because `Promise<(Pipe, Pipe)>.print` confuses the compiler for Swift.print usage. This obv. is completely daft, but whatever.
2018-03-28 12:14:21 -04:00
Max Howell
a90d49496d [ci skip] Document finally; Refs #802 2018-03-01 09:29:22 -05:00
Max Howell
660c913111 Fix throwing in init(resolver:) => warning
The Resolver deallocated pending, so it led to the pending promise warning.

Aside: this of course means that we don’t warn for pending Guarantees or AnyPromises.

Fixes #799
2018-02-27 11:41:43 -05:00
Max Howell
06ff4333b9 Documentation++ 2018-02-25 13:40:00 -05:00
Max Howell
30530b0125 Remove map and flatMap deprecations
Closes #795
2018-02-25 13:40:00 -05:00
Lois Di Qual
47b6db3a50 Fix param names 2018-02-24 20:18:24 -08:00