Channel
public static func ==(lhs: Channel<Value>, rhs: Channel<Value>) -> Bool
Returns a Boolean value indicating whether two values are equal.
This documentation comment was inherited from .
Methods
public func sink(
receiveValue: @escaping (Value) -> Void
) -> Cancellable
Subscribe to a stream of values over time. The subscription never fails.
Returns
Cancellable
A cancellable instance. Deallocation of the result will tear down the subscription stream.
public func hash(into hasher: inout Hasher)
Hashes the essential components of this value by feeding them into the given hasher.
This documentation comment was inherited from .
Parameters
hasher
Hasher
The hasher to use when combining the components of this instance.
func sinkOnMainThread(_ receiveValue: @escaping (Value) -> Void) -> Cancellable
Получение результата Channel
на main
очереди.
Returns
func sink(on queue: DispatchQueue, receiveValue: @escaping (Value) -> Void) -> Cancellable
Получение результата Channel
на заданной очереди.
Parameters
func sink(reason: CameraChangeReasonOptionSet, receiveValue: @escaping () -> Void) -> Cancellable
Вызов callback при получении результата Channel
с указанием типа изменения.
Parameters
func sink(reason: CameraChangeReasonOptionSet, receiveValue: @escaping (CameraChange) -> Void) -> Cancellable
Получение результата Channel
с указанием типа изменения.
Parameters