Is there a quick & dirty version of the `share...
# coroutines
m
Is there a quick & dirty version of the
shareIn
Flow operator with
WhileSubscribed
behavior? I’d like to roughly have that behavior already and swap with
shareIn
later on. I have plenty of duplicate executions upstream where I’d like results to be shared.
Here’s my first take. https://gist.github.com/fluidsonic/3ddb4727e642c0374de488a13a5f8f36 Feel free to rip it apart 😅
l
Nice one. I'd use
++
and
--
but it looks great, simple and safe enough.
🙏 1
m
Mhh, replay is dearly missing and not easy to implement.