Should you use Delegates.observerable() or SharedFlows for custom events?
I'm working with ble devices on Android and want to implement custom events. I have the functionalities I need already in C# with Xamarin, so I'm just translating the code most of the time.
In C#, I would use delegate and event for custom events, Kotlin offers the Delegates.observerable() functionality.
I tested it with the following code and it looks like it works suspiciously flawlessly:
var peripheralFound: MyBlePeripheral by Delegates.observable(MyBlePeripheralImpl()){
_, _,...