Android is eager to take you to an amazing journey of music playing but what you do if you do not want to keep it playing forever. You can use various automation apps like Tasker or can install a 3rd party app. But the best option is to have a native sleep timer. YouTube Music will soon be equipped with sleep timer thus making it ideal friend during the breaks, workouts or whenever you need to listen for so long.
In a latest update to YouTube Music has added support for new Android 13 media player. In addition to the visible changes there is also work on new functionality behind the scenes. Google Play Music has featured a sleep timer so that music can be paused automatically at preset user-defined time. The option was available in main settings menu but it was not the simplest one to get to and then use.