Created
June 15, 2013 11:59
-
-
Save korzha/5787890 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
@Module(complete = false, library = true) | |
public class ProtocolModule { | |
@Provides | |
@Singleton | |
Executor provideExecutor(TaskExecutorImpl executor) { | |
return executor; | |
} | |
@Provides | |
@Singleton | |
ExecutorService provideExecutorService(TaskExecutor executor) { | |
return executor; | |
} | |
@Provides | |
@Singleton | |
ScheduledExecutorService provideScheduledExecutorService(TaskExecutor executor) { | |
return executor; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment