<@U0HUJ25V1> for the second time I failed to choos...
# tornadofx
z
@thomasnield for the second time I failed to choose suitable braces ...
selectedProperty().toObservable().subscribe{signalController.filterSwitchSubject}
instead of
selectedProperty().toObservable().subscribe(signalController.filterSwitchSubject)
. Which is syntactically close but crucial with regard to emitting events or not.
😬 4
t
Ouch, be careful. The nuance of rounded versus curly is silent but deadly.
z
Can you point me to some reading material about the nuances of the two flavors.
t
@zealous one is a functional parameter, while the other is a plain parameter.
The
subscribe { }
will execute that lambda for each
onNext()
, while
.subscribe(mySubject)
will subscribe the Subject as an Observer.
So putting a
subscribe { mySubject }
is basically going to do nothing, other than call a reference to the Subject and do nothing to it.
z
What do you mean by 'call a reference to the Subject'?