of


Description:

public static Result<Cron,Error> of (string expression)

Creates scheduler from cron expression.

Supported forms: - "star-slash-N * * * *" style interval (every N minutes) - "M H * * *" (every day at H:M)

Parameters:

expression

cron expression.

Returns:

Result.ok(scheduler), or Result.error(CronError.INVALID_EXPRESSION) when expression format is unsupported.