When I print a coroutine thread out
println("${Thread.currentThread()}")
It will show
Thread[DefaultDispatcher-worker-1 @coroutine#4,5,main]
I know that
DefaultDispatcher-worker-1is the Thread currently running in@coroutine#4is the coroutine name5is the priority of the thread it is running inmain-- what is this referring to? the launching thread?
I don't understand what main is for, although I know that refers to the main thread.
Is it the parent thread? (I doubt so, as I try using a non-main parent thread, it still show main)
Is it the launching thread?
If not, what is it?