while investigating coroutines `Flow` API a colle...
# coroutines
d
while investigating coroutines
Flow
API a colleague noticed that there are several operators (e.g.
mapLatest
) still experimental. What would be your recommendation about those? Is it safe to adopt them? Is there typically a migration supported in case of deprecation?
👌 1
z
It’s not safe to adopt them if your code is published as a library, because consumers of the library can change the version of the coroutines library out from under you.
@Experimental
means the API is subject to breaking changes, so that could cause your code to fail at runtime. If your code is for an app, not a library, then it’s not so much a question of “safety” as whether you’re willing to deal with having to change your code to fix API breakages the next time you upgrade your kotlin version.
👍 2