Will a StreamSubscription stay alive indefinitely if cancel() is not called?
I have always made a habit to call cancel() on all StreamSubsciptions in Dart. But I am curious what happens if I don't. Will the stream cancel if the garbage collection cleans up the StreamSubscription?
Comments
Post a Comment