Skip to content

Instantly share code, notes, and snippets.

@joan38
Created August 27, 2018 13:07
Show Gist options
  • Save joan38/f79c3bccb236496cb339f897bcca2e99 to your computer and use it in GitHub Desktop.
Save joan38/f79c3bccb236496cb339f897bcca2e99 to your computer and use it in GitHub Desktop.
// No Params
def apply(): CronTrigger[HNil] = ...
// One param
def apply[ParamValue](value: ParamValue): CronTrigger[ParamValue :: HNil] = ...
// Multi param
def apply[TupledValues <: Product, ParamValues <: HList](paramValues: TupledValues)(
implicit tupleToHList: Generic.Aux[TupledValues, ParamValues]
): CronTrigger[ParamValues] = ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment