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

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation