Skip to content

Instantly share code, notes, and snippets.

@rozkminiacz
Created July 23, 2020 06:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rozkminiacz/391932ea8ee38af833637054e0c593e2 to your computer and use it in GitHub Desktop.
Save rozkminiacz/391932ea8ee38af833637054e0c593e2 to your computer and use it in GitHub Desktop.
interface SuspendOutUseCase<Output> {
suspend fun execute(): Output
}
interface SuspendInOutUseCase<Input, Output> {
suspend fun execute(input: Input): Output
}
interface InOutUseCase<Input, Output> {
fun execute(input: Input): Output
}
interface OutUseCase<Output> {
fun execute(): Output
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment