I like the mini-dsl approach that orangy mentioned...
# announcements
u
I like the mini-dsl approach that orangy mentioned here some time ago:
Copy code
foo {
  onSuccess {
    println(it)
  }
  onFailure {
    it.printStackTrace()
  }
}