I find that DelicateCoroutinesApi opt in a little useless.
I am purposely using a GlobalScope in one place and what I want to do here is to add a suppress at the place where it's used with a comment.
But with the opt in system I need to enable it for the whole module which makes the warning in other places go a away 😕
g
gildor
06/10/2021, 8:18 AM
But why do you enable it for module instead of OptIn for particular case?
p
Paul Woitaschek
06/10/2021, 8:19 AM
Well it's an internal of a class. If I propagate the opt in then all the callers would need to have that as well
g
gildor
06/10/2021, 8:20 AM
But OptIn doesn’t propagate warnng
gildor
06/10/2021, 8:20 AM
annotate with @DelicateCoroutinesApi will propagat it
gildor
06/10/2021, 8:20 AM
@OptIn(DelicateCoroutinesApi::class) suppresses it for particular case and warning is not propagated