zealous
10/24/2017, 2:59 PMselectedProperty().toObservable().subscribe{signalController.filterSwitchSubject}
instead of selectedProperty().toObservable().subscribe(signalController.filterSwitchSubject)
. Which is syntactically close but crucial with regard to emitting events or not.thomasnield
10/25/2017, 6:07 AMzealous
10/25/2017, 6:29 AMthomasnield
10/26/2017, 10:34 PMthomasnield
10/26/2017, 10:35 PMsubscribe { }
will execute that lambda for each onNext()
, while .subscribe(mySubject)
will subscribe the Subject as an Observer.thomasnield
10/26/2017, 10:36 PMsubscribe { mySubject }
is basically going to do nothing, other than call a reference to the Subject and do nothing to it.zealous
11/08/2017, 9:55 AM