<divclass="platform-hinted "data-platform-hinted="data-platform-hinted"><divclass="content sourceset-dependent-content"data-active=""data-togglable=":dokkaHtml/commonMain"><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="scheduler.html"><spanclass="token function">scheduler</span></a><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="../-kron-scheduler/index.html">KronScheduler</a><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/InsanusMokrassar/krontab/blob/master//src/commonMain/kotlin/dev/inmo/krontab/KrontabConfig.kt#L92">source</a>)</span></span></div><pclass="paragraph">Creates <strong>new</strong><ahref="../-kron-scheduler/index.html">KronScheduler</a> based on a <ahref="template.html">template</a></p><spanclass="kdoc-tag"><h4class="">Return</h4><pclass="paragraph">In case when offset parameter is absent in <ahref="template.html">template</a> will be used <ahref="../create-simple-scheduler.html">createSimpleScheduler</a> method and returned <spandata-unresolved-link="dev.inmo.krontab.internal/CronDateTimeScheduler///PointingToDeclaration/">CronDateTimeScheduler</span>. In case when offset parameter there is in <ahref="../index.html#-1448720714%2FClasslikes%2F788909594">template</a> will be used <spandata-unresolved-link="dev.inmo.krontab.internal//createKronSchedulerWithOffset/#kotlin.Array[kotlin.Byte]?#kotlin.Array[kotlin.Byte]?#kotlin.Array[kotlin.Byte]?#kotlin.Array[kotlin.Byte]?#kotlin.Array[kotlin.Byte]?#kotlin.Array[kotlin.Int]?#kotlin.Array[kotlin.Byte]?#[Error type: Unresolved type for TimezoneOffset]#kotlin.Array[kotlin.Short]?/PointingToDeclaration/">createKronSchedulerWithOffset</span> and returned <spandata-unresolved-link="dev.inmo.krontab.internal/CronDateTimeSchedulerTz///PointingToDeclaration/">CronDateTimeSchedulerTz</span></p></span><hr><divclass="symbol monospace"><spanclass="token keyword"></span><spanclass="token keyword">fun </span><ahref="scheduler.html"><spanclass="token function">scheduler</span></a><spanclass="token punctuation">(</span><spanclass="parameters "><spanclass="parameter ">defaultOffset<spanclass="token operator">: </span><ahref="../../dev.inmo.krontab.utils/index.html#1215844957%2FClasslikes%2F788909594">Minutes</a></span></span><spanclass="token punctuation">)</span><spanclass="token operator">: </span><ahref="../-kron-scheduler-tz/index.html">KronSchedulerTz</a><spanclass="clearfix"><spanclass="floating-right">(<ahref="https://github.com/InsanusMokrassar/krontab/blob/master//src/commonMain/kotlin/dev/inmo/krontab/KrontabConfig.kt#L154">source</a>)</span></span></div><pclass="paragraph">Creates base <ahref="../-kron-scheduler/index.html">KronScheduler</a> using <ahref="scheduler.html">scheduler</a> function. In case when returned <ahref="../-kron-scheduler/index.html">KronScheduler</a> is <ahref="../-kron-scheduler-tz/index.html">KronSchedulerTz</a>, it will be returned as is. Otherwise, will be created new <spandata-unresolved-link="dev.inmo.krontab.internal/CronDateTimeSchedulerTz///PointingToDeclaration/">CronDateTimeSchedulerTz</span> with <ahref="scheduler.html">defaultOffset</a> as offset</p></div></div>