scheduleWithDelay


Description:

public Result<Cron,Error> scheduleWithDelay (Duration initialDelay, owned CronTask task)

Starts scheduled execution with initial delay.

Parameters:

initialDelay

delay before first schedule evaluation.

task

callback function.

Returns:

Result.ok(this scheduler), or Result.error(CronError.INVALID_ARGUMENT) when delay is negative.