Kotline coroutine:how to check a coroutine builder created a root coroutine
In the kotline coroutine exceptions doc. The doc mentioned:
When these builders are used to create a root coroutine, that is not a
child of another coroutine
My question is how to check a coroutine scope is a not a child of another coroutine programmablely? I can not find any member function from CoroutineScope to indicate the current coroutine scocpe is a root coroutine or not