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