Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Cancel' for PromiseKit #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dougzilla32
Copy link

These are the diffs for option 1 of Proposal for PromiseKit cancellation support #896. With option 1 the new cancellation code is included with CorePromise.

There repositories involved with the pull request for option 1 are:

Repositories
mxcl/PromiseKit
PromiseKit/Alamofire-
PromiseKit/Bolts
PromiseKit/CoreLocation
PromiseKit/Foundation
PromiseKit/MapKit
PromiseKit/OMGHTTPURLRQ-
PromiseKit/StoreKit
PromiseKit/SystemConfiguration
PromiseKit/UIKit

@codecov-io
Copy link

codecov-io commented Sep 11, 2018

Codecov Report

❗ No coverage uploaded for pull request base (master@c7989bb). Click here to learn what that means.
The diff coverage is 45.6%.

Impacted file tree graph

@@           Coverage Diff            @@
##             master      #9   +/-   ##
========================================
  Coverage          ?   45.5%           
========================================
  Files             ?      10           
  Lines             ?     383           
  Branches          ?       0           
========================================
  Hits              ?     174           
  Misses            ?     209           
  Partials          ?       0
Impacted Files Coverage Δ
Sources/afterlife.swift 100% <100%> (ø)
Sources/NSNotificationCenter+Promise.swift 100% <100%> (ø)
Sources/NSURLSession+Promise.swift 21.5% <22.7%> (ø)
Sources/NSObject+Promise.swift 78.6% <50%> (ø)
Sources/Process+Promise.swift 47.5% <71.5%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c7989bb...eb4aa5e. Read the comment docs.

dougzilla32 and others added 3 commits October 7, 2018 15:39
…and doc updates

The cancellable 'when' methods must be named 'cancellableWhen' due to a  compiler bug.  The compiler bug (described on line 330 of 'when.swift') causes a conflict between the non-cancellable 'when' functions and the cancellable 'when' functions.

Fix 'isCancelled' on URLSessionTask to properly report the cancelled state.
@dougzilla32
Copy link
Author

Could we add this pull request to PromiseKit V7 Alpha? I'm ready with all the code to make the cancellable extensions work with PromiseKit V7!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants