will cancel the channel when collection stops, and the lifecycleScope will be cancelled when your fragment is destroyed.
2. What behavior do you want here?
Actually I'm looking for channel which will deliver the value only once. Hence consumeAsFlow seemed ok. (This is AFAICT different to PublishSubject), so I've tried randevous channel. Though I think it's not ideal (despite the crash) because new activity after rotation can miss the event in the time inbetween.