endAndWait

abstract suspend fun endAndWait()

End the stream and asynchronously wait for it to shutdown