Closed frankandrobot closed 8 years ago
Yeah, you don't need to. All listeners automatically removed on end. Also when you subscribe to an ended stream it's a noop.
Btw, because of that you can often avoid manual unsubscribing by limiting stream with take/takeWhile/takeUntilBy/etc.
stream.take(1).onValue(fn)
Nice!
Does Kefir automagically unsubscribe listeners when the stream ends or do you still need to manually unsubscribe them?