Closed indrih17 closed 4 years ago
I created simple observe method, but the callback in the listener is never called.
observe
fun observe(name: String): Flow<Boolean> = callbackFlow { offer(get(name)) val listener = addListener(name) { offer(get(name)) } awaitClose { listener.deactivate() } }
What am I doing wrong? Library Version 0.5.
The problem was in the android studio emulator.
I created simple
observe
method, but the callback in the listener is never called.What am I doing wrong? Library Version 0.5.