Structured Concurrency
Learn about structured concurrency in coroutine builders.
We'll cover the following
If we start a coroutine on GlobalScope
, the program won’t wait for it. As previously mentioned, coroutines do not block any threads, and nothing prevents the program from ending. This is why, in the example below, we need to call an additional delay
at the end of runBlocking
if we want to see “World!” printed.
Get hands-on with 1400+ tech skills courses.