package Ġcom . hex l . github . model čĊč Ċ import Ġcom . hex l . base mv vm . data . Base Response č Ċ import Ġcom . hex l . github . api . GitHub Service č Ċ import Ġcom . hex l . base mv vm . ui . base . BaseModel č Ċ import Ġkotlinx . coroutines . Coroutine Scope č Ċ import Ġkotlinx . coroutines . Dispatch ers č Ċ import Ġkotlinx . coroutines . with Context č Ċ import Ġorg . kode in . di . K ode in č Ċ import Ġkotlin . coroutines . Coroutine Context čĊč Ċ suspend Ġfun Ġ< R > Ġlaunch Sync Task ( čĊĠĠĠ Ġblock : Ġsuspend ĠCor outine Scope . () Ġ-> ĠBase Response < R >, čĊĠĠĠ Ġcontext : ĠCor outine Context Ġ= ĠDispatch ers . IO č Ċ ): ĠBase Response < R > Ġ{ čĊĠĠĠ Ġreturn Ġwith Context ( context , Ġblock ) č Ċ } čĊč Ċ class ĠGitHub Model ( kode in : ĠK ode in ) Ġ: ĠBase Model ( kode in ) Ġ{ čĊčĊĠĠĠ Ġsuspend Ġfun Ġget New List () Ġ= Ġlaunch Sync Task ({ čĊĠĠĠĠĠĠĠ Ġretrofit Manager čĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. create Service ( GitHub Service :: class . java ) čĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. getNew Cor outines Chapter s () čĊĠĠĠ Ġ}) č Ċ }