ursus
03/28/2022, 10:43 PMtimer
type flow? it’s not really idiomatic, is it? or maybe akin to backpressure, i.e. downstream telling upstream to stop?Richard Gomez
03/29/2022, 2:24 AMursus
03/29/2022, 11:17 AMNick Allen
03/29/2022, 5:23 PMtimerEnabled.transformLatest { if (it) emitAll(timer) }
ursus
03/29/2022, 6:58 PMNick Allen
03/29/2022, 7:12 PMtimer.onEach { timerEnabled.first { it } }
Don't use instagram so I know nothing of what's implied by that. Does your timer emit an index? Should pausing not skip values? If you tap mid-interval do you need resuming the timer to wait for the remaining part of the interval?ursus
03/29/2022, 9:11 PM