Skip to main content

NewGoCronScheduler

Constructs a GoCronScheduler.

def NewGoCronScheduler(
executor: Executor
) - > *GoCronScheduler

Constructs a GoCronScheduler. This function initializes a new cron scheduler with UTC location and a discarded logger, preparing it to manage scheduled jobs.

Parameters

NameTypeDescription
executorExecutorThe executor responsible for running the tasks defined by the scheduled jobs.

Returns

TypeDescription
*GoCronSchedulerA pointer to a new GoCronScheduler instance, configured for scheduling.