Extensions

The following extensions are available globally.

  • To import the cancellable NSNotificationCenter category:

    use_frameworks! pod CancelForPromiseKit/Foundation

    Or cancellable NSNotificationCenter is one of the categories imported by the umbrella pod:

    use_frameworks! pod CancelForPromiseKit

    And then in your sources:

    import PromiseKit import CancelForPromiseKit

    See more

    Declaration

    Swift

    class NotificationCenter : NSObject
  • To import the cancellable NSObject category:

    use_frameworks! pod CancelForPromiseKit/Foundation

    Or cancellable NSObject is one of the categories imported by the umbrella pod:

    use_frameworks! pod CancelForPromiseKit

    And then in your sources:

    import PromiseKit import CancelForPromiseKit

    See more

    Declaration

    Swift

    class NSObject : NSObjectProtocol
  • Declaration

    Swift

    class URLSessionTask : NSObject, NSCopying, ProgressReporting
  • To import the NSURLSession category:

    use_frameworks! pod CancelForPromiseKit/Foundation

    Or NSURLSession is one of the categories imported by the umbrella pod:

    use_frameworks! pod CancelForPromiseKit

    And then in your sources:

    import PromiseKit import CancelForPromiseKit

    See more

    Declaration

    Swift

    class URLSession : NSObject