06/15/2021, 9:06 AM
while investigating coroutines
API a colleague noticed that there are several operators (e.g.
) 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?
:yes: 1

Zach Klippenstein (he/him) [MOD]

06/15/2021, 3:39 PM
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.
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