Created
May 17, 2021 03:22
-
-
Save jeremyrempel/1dba1aaace3485800bc96759f2423dc9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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