Skip to content

Instantly share code, notes, and snippets.

package com.marko.domain.usecase
import com.marko.domain.CoroutineDispatchers
import com.marko.domain.result.Result
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.channels.ReceiveChannel
import kotlinx.coroutines.withContext
abstract class UseCase<in P, R>(private val coroutineDispatchers: CoroutineDispatchers) {