Created
April 16, 2016 21:35
-
-
Save frogermcs/877e358790c8b21b043e0935db2125b0 to your computer and use it in GitHub Desktop.
Async injection with Dagger 2 and RxJava
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
@Provides | |
HeavyExternalLibrary provideHeavyExternalLibrary() { | |
HeavyExternalLibrary heavyExternalLibrary = new HeavyExternalLibrary(); | |
heavyExternalLibrary.init(); //This method takes about 500ms | |
return heavyExternalLibrary; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment