Skip to content

Function: Cron()

ts
function Cron(cronExpression, options?): MethodDecorator;

Defined in: packages/scheduler/src/decorators/scheduler.decorators.ts:50

Decorator for cron jobs

Parameters

ParameterType
cronExpressionstring | CronExpression
options?CronTaskOptions

Returns

MethodDecorator

Released under the MIT License.