Skip to content

Instantly share code, notes, and snippets.

@jmfayard
Last active February 17, 2018 11:27
Show Gist options
  • Save jmfayard/f1384464039b35e714fea72d750fb1d1 to your computer and use it in GitHub Desktop.
Save jmfayard/f1384464039b35e714fea72d750fb1d1 to your computer and use it in GitHub Desktop.
class CatController @Inject constructor(
val catService: CatService,
val catRepository: CatRepository,
@Named("background")
val backgroundThread: Scheduler,
@Named("MAIN")
val mainThread: Scheduler
)
interface AppComponent {
val catController: CatController
// ... other existing properties
}
fun usage() {
val catController = app().catController
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment