EXTENSION
Publisher
public extension Publisher where Self.Failure == Never
Methods
dropFirstAndSink(receiveValue:)
func dropFirstAndSink(receiveValue: @escaping (Self.Output) -> Void) -> AnyCancellable
Convenient publisher to dropFirst
and sink
.
- Note: If the value changed on the background thread, it will be handled in the background thread. If the value changed on the main thread, it will be handled in the main thread.
dropFirstAndSinkOnMainThread(receiveValue:)
func dropFirstAndSinkOnMainThread(receiveValue: @escaping (Self.Output) -> Void) -> AnyCancellable
Convenient publisher on the main thread to dropFirst
and sink
.