Extensions
The following extensions are available globally.
-
To import the cancellable
NSNotificationCentercategory:use_frameworks! pod
CancelForPromiseKit/Foundation
Or cancellable
NSNotificationCenteris one of the categories imported by the umbrella pod:use_frameworks! pod
CancelForPromiseKit
And then in your sources:
import PromiseKit import CancelForPromiseKit
See moreDeclaration
Swift
class NotificationCenter : NSObject
-
To import the cancellable
NSObjectcategory:use_frameworks! pod
CancelForPromiseKit/Foundation
Or cancellable
NSObjectis one of the categories imported by the umbrella pod:use_frameworks! pod
CancelForPromiseKit
And then in your sources:
import PromiseKit import CancelForPromiseKit
See moreDeclaration
Swift
class NSObject : NSObjectProtocol
-
Declaration
Swift
class URLSessionTask : NSObject, NSCopying, ProgressReporting -
To import the
NSURLSessioncategory:use_frameworks! pod
CancelForPromiseKit/Foundation
Or
NSURLSessionis one of the categories imported by the umbrella pod:use_frameworks! pod
CancelForPromiseKit
And then in your sources:
import PromiseKit import CancelForPromiseKit
See moreDeclaration
Swift
class URLSession : NSObject
View on GitHub
Install in Dash
Extensions Reference