Delay corroutine function in Async logic

Hi i am learning callback [quote=“knveraraju91, post:1, topic:29375, full:true”]
Hi

I need help understanding interface. In the documentation I read it is not possible to create instance from interface. But MutableStateFlow is an interface. In the documentation it shows instance is created “ An instance of MutableStateFlow with the given initial value can be created using MutableStateFlow(value) constructor function.” I am assuming this SAM. Single Abstract Method (SAM) interface. Please suggest me documentation so I can clarify this Thank you
[/quote]

MutableStateFlow is both the name of the interface and a name of the function which creates an instance. It doesn’t instantiate MutableStateFlow interface, it instantiates StateFlowImpl.