awaitClose

suspend fun awaitClose()

Suspends until this player is asked to close, through close or closeAndAwait from anywhere, and returns at once when that already happened.

It never closes the player, and it does not wait for the teardown; closeAndAwait does. A helper that must go away with the player waits here, as the media session does.