kotlinx.coroutines icon indicating copy to clipboard operation
kotlinx.coroutines copied to clipboard

Consider stabilizing `CoroutineStart.ATOMIC`

Open jacktol opened this issue 1 year ago • 1 comments

The CoroutineStart.ATOMIC option was marked experimental almost 6 years ago as part of version 0.30.0. Is there a strong reason that the option is still experimental, or could it be considered stable by now?

jacktol avatar Jun 05 '24 14:06 jacktol

I think it's time to promote it to delicate: it has its use-cases, but it's easy to misuse, which fits the delicate concept perfectly

qwwdfsad avatar Jun 26 '24 16:06 qwwdfsad

I think it's time to promote it to delicate: it has its use-cases, but it's easy to misuse, which fits the delicate concept perfectly

The characteristics listed in the KDoc that make ATOMIC delicate also apply to UNDISPATCHED. Should it also be made delicate?

lukellmann avatar Aug 12 '24 22:08 lukellmann

@lukellmann UNDISPATCHED has a wider range of use cases due to the threading guaranties, so it isn't marked as delicate API

zuevmaxim avatar Aug 26 '24 13:08 zuevmaxim