Idiomatic way to define use cases from clean architecture in kotlin
I try to swtich my usecase classes from Java to Kotlin and from Rxjava to coroutines.
Here is my GetTopSongs class.
class GetTopSongs {
suspend fun execute(limit:Int):Either{
//... do stuff
}
}
I want to know ther is any better way than getTopSongs.execute(10) in Kotlin?