Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class MainRepo(
val provideOkHttp: () -> OkHttpClient,
val provideGson: () -> Gson
) {
fun fetchSomething() {
thread {
val okHttp = provideOkHttp()
val gson = provideGson()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment