ReactiveKit v3.13.0 Release Notes

Release Date: 2019-06-22 // almost 5 years ago
  • API alignment with Combine

    • PublishSubject<Element, Error> has been renamed to PassthroughSubject<Element, Error>.
    • next(value), completed() and failed(error) methods on the Observer type have been renamed to receive(value), receive(completion: .finished) and receive(completion: .failure(error)) respectively.
    • next(value), completed() and failed(error) methods on the Subject type have been renamed to send(value), send(completion: .finished) and send(completion: .failure(error)) respectively.
    • shareReplay(limit:) has been renamed to share(limit:).
    • sink(receiveCompletion:receiveValue:) operator is added.

    let didChange = PassthroughSubject\<Void, Never\>() didChange.sink { (value) inprint(value) } didChange.sink(receiveCompletion: { (completion) inprint(completion) }, receiveValue: { value inprint(value) }) didChange.send() didChange.send(completion: .finished)