com.trendyol.kediatr.CommandWithResultHandler.kt Maven / Gradle / Ivy
package com.trendyol.kediatr
/**
* Interface to be implemented for a non-blocking command with result handler
*
* @since 1.0.16
* @param TCommand any [Command] subclass to handle
* @see Command
*/
interface CommandWithResultHandler, TResult> {
/**
* Handles a command
*
* @param command the command to handle
*/
suspend fun handle(command: TCommand): TResult
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy