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

Popular posts from this blog

Spring Elasticsearch Operations

Object oriented programming concepts (OOPs)

Network Error and Timeout on Authorize.net JS