Bruno_
02/14/2020, 9:27 AM// exposed as public
@PublishedApi
internal fun timer(name: String?, daemon: Boolean) = if (name == null) Timer(daemon) else Timer(name, daemon)
docs of published contains:
When applied to a class or a member with internal visibility allows to use it from public inline functions and makes it effectively public.
the question is: since it's internal why should I care about not making breaking changes to the declaration? It's just there for the purpose of chopping up big public inline functions, no? so published internal inline fun is like a private fun in class, right?Dico
02/14/2020, 9:31 AMBruno_
02/14/2020, 10:23 AMtechnically
call it because the call in a public inline fun is effectively replaced by the code but still it's not like
timer("foo", false)
ilya.gorbunov
02/14/2020, 10:58 PMtimer("foo", false)
when calling public timer("foo", ...)
for example.Dico
02/14/2020, 11:30 PM