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`.
How about use
ControlEvent
inASDisplayNode+Rx.swift
? state methods (ex: didEnterVisibleState) must be called in main thread.