missionary icon indicating copy to clipboard operation
missionary copied to clipboard

How can an observer signalize termination?

Open lgrapenthin opened this issue 6 years ago • 2 comments

Skimming the java impl, I noticed that passing the cancellation callback to event-fn is one possiblity (?), but, while it works, it also results in event-fn being emitted from the observer and doesn't seem like the canonical way. Probably invoking the event-fn with itself would be nice.

lgrapenthin avatar Jul 19 '19 16:07 lgrapenthin

What is the use case ?

leonoel avatar Jul 19 '19 16:07 leonoel

None, just playing around with the semantics... I'm very used to core.async, where termination usually is propagated on producer site via closing of consumer channels. I now understand things work in the other direction here, were consumers propagate cancellation to producers. Feel free to ignore this issue.

lgrapenthin avatar Jul 19 '19 18:07 lgrapenthin