Demonstrates KMP
- Framework/ UI (Native iOS & Android)
- Presentation Layer
- Data Layer (Shared Module)
- Domain/App Layer (Shared Module)
suspend
keyword in the Kt function makes the IO (Input/Output) thread suspended until we get results.- suspend functions can only be called from a Coroutine.
- For a coroutine to exist we must have a scope and when its scope is canceled it cancels every work within the coroutine. It's good for memory management and avoiding memory leaks.
High-Level structure