close

open override fun close()

Ends this stream and releases it.

The data track's subscription is dropped once every DataTrackStream subscribed to it has been closed, so other subscribers are unaffected. Leaving a stream unclosed keeps its subscription alive until the stream is garbage collected.

Any in-progress collection of flow completes.