CancellableComposite

public class CancellableComposite
extension CancellableComposite: Moya.Cancellable
extension CancellableComposite: CustomStringConvertible
extension CancellableComposite: LockableBySemaphore

Undocumented

  • all mode possible to manage list of cancellable

    See more

    Declaration

    Swift

    public enum Mode
  • Init a cancellable composite.

    Declaration

    Swift

    public init(mode: Mode = .all)
  • The current mode.

    Declaration

    Swift

    public var mode: Mode
  • A semaphore to manage asynchronous code.

    Declaration

    Swift

    public var semaphore: DispatchSemaphore
  • Undocumented

    Declaration

    Swift

    @discardableResult
    public func append(_ cancellable: Moya.Cancellable) -> Bool
  • Undocumented

    Declaration

    Swift

    public func appendUnlocked(_ cancellable: Moya.Cancellable)
  • Declaration

    Swift

    public var isCancelled: Bool { get }
  • Undocumented

    Declaration

    Swift

    public var isCancelledUnlocked: Bool { get }
  • Declaration

    Swift

    public func cancel()
  • Undocumented

    Declaration

    Swift

    public func unlockedCancel()
  • Declaration

    Swift

    public var description: String { get }