View on GitHub

mini-swift

Minimal Flux architecture written in Swift.

CLASS

DispatcherSubscription

public final class DispatcherSubscription: Comparable, Disposable

Properties

id

public let id: Int

tag

public let tag: String

Methods

init(dispatcher:id:priority:tag:completion:)

public init(dispatcher: Dispatcher,
            id: Int,
            priority: Int,
            tag: String,
            completion: @escaping (Action) -> Void)

dispose()

public func dispose()

on(_:)

public func on(_ action: Action)

==(_:_:)

public static func == (lhs: DispatcherSubscription, rhs: DispatcherSubscription) -> Bool

Parameters

Name Description
lhs A value to compare.
rhs Another value to compare.

>(_:_:)

public static func > (lhs: DispatcherSubscription, rhs: DispatcherSubscription) -> Bool

Parameters

Name Description
lhs A value to compare.
rhs Another value to compare.

<(_:_:)

public static func < (lhs: DispatcherSubscription, rhs: DispatcherSubscription) -> Bool

Parameters

Name Description
lhs A value to compare.
rhs Another value to compare.

>=(_:_:)

public static func >= (lhs: DispatcherSubscription, rhs: DispatcherSubscription) -> Bool

Parameters

Name Description
lhs A value to compare.
rhs Another value to compare.

<=(_:_:)

public static func <= (lhs: DispatcherSubscription, rhs: DispatcherSubscription) -> Bool

Parameters

Name Description
lhs A value to compare.
rhs Another value to compare.