UnsubscribeToken
public struct UnsubscribeToken
extension UnsubscribeToken: Hashable
Convenience typealias defining a closure that can be used to unsubscribe a Hub listener. Although UnsubscribeToken
conforms to Hashable, only the id property is considered for equality and hash value; channel is used only for
routing an unsubscribe request to the correct HubChannel.
-
Declaration
Swift
public init(channel: HubChannel, id: UUID) -
Declaration
Swift
public static func == (lhs: UnsubscribeToken, rhs: UnsubscribeToken) -> Bool -
Declaration
Swift
public func hash(into hasher: inout Hasher)
View on GitHub