Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class Print : Action {
override val name: String = "print"
override fun execute(response: Response) {
if (response.isError) {
System.err.println("printing (in error stream) ${response.value}...")
return
}
println("printing ${response.value}...")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.