A collection of Kotlin Multiplatform utilities designed to streamline common development patterns across Android, iOS, JVM, and WASM targets.
AsyncState<T>: Type-safe representation of asynchronous operations withIdle,Loading,Success, andErrorstates- Comprehensive extension functions for state transformation and handling
- Flow integration for reactive programming
- Null-safe mapping utilities
JobManager: Smart coroutine job management with strategies for joining or replacing existing jobsRefreshableJob: Refreshable coroutine jobs with cancellation supportwithTimeBounds: Time-bounded coroutine execution
UpdatableState<T>: Mutable state containers with async operationsViewModelState: ViewModel-ready state managementRepositoryState: Repository pattern state management- Factory functions for creating states from Flows and suspending functions
PresentableException: User-friendly error representationsErrorMessage: Structured error messages with retry capabilities- Automatic error ID generation for debugging