state

Returns a cold Flow of session's state. It will emit current state immediately when collecting is triggered.

Use state.first() to access current state without collecting it.

This flow completes when the session's state is terminal.