Combining two listeners kotlin coroutines
问题 I have created a library, in it I have a room database with one Table OfflineData . I listen to new rows inserted in the OfflineData table. I also listen to changes happening in the network connection. I want to combine them both. what I want to listen to a function which returns list of from the table when when there is new row inserted and has internet connection whet the connection comes back on and there is data in the OfflineData table. OfflineDatabaseManager - I have getOfflineData()