package Ġorg . aw ong . ko ans . coroutines Ċ Ċ import Ġkotlinx . coroutines . run Blocking Ċ import Ġorg . junit . Test Ċ import Ġkotlin . test . assertTrue Ċ Ċ class ĠS us pending Functions Test Ġ{ ĊĊĠĠĠ Ġprivate Ġval Ġfunctions Ġ= ĠS us pending Functions () ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Compose Two Functions Se quent ially () Ġ= Ġrun Blocking Ġ{ ĊĠĠĠĠĠĠĠ Ġfunctions . compose Two Functions Se quent ially () ĊĠĠĠĠĠĠĠ ĠassertTrue ( true , Ġ" R an Ġ 2 Ġcor outines Ġse quent ially ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Compose Two Functions Async () Ġ= Ġrun Blocking Ġ{ ĊĠĠĠĠĠĠĠ Ġfunctions . compose Two Functions Async () ĊĠĠĠĠĠĠĠ ĠassertTrue ( true , Ġ" R an Ġ 2 Ġcor outines Ġasynchronously ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Compose Two Functions Async _ And L az ily Start The m () Ġ= Ġrun Blocking Ġ{ ĊĠĠĠĠĠĠĠ Ġfunctions . compose Two Functions Async L az ily () ĊĠĠĠĠĠĠĠ ĠassertTrue ( true , Ġ" R an Ġ 2 Ġcor outines Ġasynchronously ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Compose Async Style Functions () Ġ= Ġrun Blocking Ġ{ ĊĠĠĠĠĠĠĠ Ġfunctions . compose Async Style Functions () ĊĠĠĠĠĠĠĠ ĠassertTrue ( true , Ġ" R an Ġ 2 Ġcor outines Ġasynchronously ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Structured Concurrency () Ġ= Ġrun Blocking Ġ{ ĊĠĠĠĠĠĠĠ Ġfunctions . structured Concurrency () ĊĠĠĠĠĠĠĠ ĠassertTrue ( true , Ġ" R an Ġ 2 Ġcor outines Ġasynchronously ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġtest Structured Concurrency WithError Handling () Ġ= Ġrun Blocking Ġ{ ĊĠĠĠĠĠĠĠ Ġfunctions . structured Concurrency WithError Handling () ĊĠĠĠĠĠĠĠ ĠassertTrue ( true , Ġ" R an Ġ 2 Ġcor outines Ġasynchronously ") ĊĠĠĠ Ġ} Ċ Ċ }