MutableStateFlow for methods (or how to make an observable function)?

It looks like last time I used Android’s Observable. But in this one I can’t find a difference with a simple setter. I can’t even .observe() it. What’s the purpose and how can it provide data to Composable?
What I need now - is alternative to Android’s LiveData that can be observed and changed anywhere without a coroutine with its observeForever().