Skip to content

Instantly share code, notes, and snippets.

@korzha
Created June 15, 2013 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save korzha/5787890 to your computer and use it in GitHub Desktop.
Save korzha/5787890 to your computer and use it in GitHub Desktop.
@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