Kotlin.coroutines vs kotlinx.coroutines

I am trying to apply Coroutines to an Android codebase, as described here.

I have been reading the official Coroutine guide, but didn’t see a reference to Continuation and related functions. On searching, I found another official guide for coroutines.

Why are there 2 coroutine guides - one for kotlin and another for kotlinx? I see a kotin.coroutines.experimental package, and kotlinx.coroutine.experimental package - both of them having Continuation related functions, while Continuation is not documented in the kotlinx coroutine guide. Is it okay to mix both kotlin and kotlinx packages in one codebase?

2 Likes

My bad, I should have looked in the language reference for the answer.