https://kotlinlang.org logo
#coroutines
Title
# coroutines
l

leandro

11/25/2020, 8:39 PM
It feels like it's possible... it would also represent what I actually wanted to represent: emissions of the current time
b

bezrukov

11/25/2020, 8:53 PM
Copy code
val timeFlow = flow {
   while (true) {
      emit(clock.now())
      delay(5.seconds)
   }
}.stateIn(scope, clock.now())
5 Views