instead of having `fun foo(success: (String) ->...
# announcements
k
instead of having
fun foo(success: (String) -> Unit, failure: (Exception) -> Unit)
. you could go for
fun foo(handler: (Result<String, Exception>) -> Unit)