Handle process statuses with Kotlin Sealed Classes
Do you have scenarios where different handling needs to be done according to the status of a process? Something like:
data class Result(
val isSuccess: Boolean,
val value: String?, // non-null when isSuccess…