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

Rechee Jozil

07/21/2020, 3:41 AM
What's the idiomatic/proper way to perform some suspending side effect to a suspending function. Basically, within a suspending function, I'd like to perform some other suspending work, but I don't want to wait on it and I don't care if it fails (I'll just log). Here's a gist of how I'd like to do it: https://gist.github.com/recheej/387a0ea70552c0bff983b8028591f2cc
o

octylFractal

07/21/2020, 3:42 AM
I'd say that's fine
r

Rechee Jozil

07/21/2020, 3:43 AM
@octylFractal Thanks. I thought so too at first but then I'm wondering if there's any issues I'm not seeing with it
g

gildor

07/21/2020, 3:48 AM
it’s fine, as can be fine any background task with side-effect
👍 1
9 Views