Some Kotlin tips I keep here for :
- Retrofit
Retrofit Callback with a better DSL :
githubService.search("kotlin")
.enqueue {
onResponse { call, response ->
// ...
}
onFailure { call, throwable ->
// ...
}
}