RxSwiftCommunity / RxCocoa-Texture

RxCocoa Extension Library for Texture.
MIT License
100 stars 52 forks source link

Convert Observable to ControlEvent #20

Closed OhKanghoon closed 4 years ago

OhKanghoon commented 4 years ago

How about use ControlEvent in ASDisplayNode+Rx.swift ? state methods (ex: didEnterVisibleState) must be called in main thread.

ControlEvent
    - it never fails,
    - it doesn’t send any initial value on subscription,
    - it `Complete`s the sequence when the control deallocates,
    - it never errors out, and
    - it delivers events on `MainScheduler.instance`.