Skip to content

Instantly share code, notes, and snippets.

@jeremyrempel
Created May 17, 2021 03:22
Show Gist options
  • Save jeremyrempel/1dba1aaace3485800bc96759f2423dc9 to your computer and use it in GitHub Desktop.
Save jeremyrempel/1dba1aaace3485800bc96759f2423dc9 to your computer and use it in GitHub Desktop.
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