syntax

peloton.scheduling.cron.CronScheduler.syntax
object syntax

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
syntax.type

Members list

Extensions

Extensions

extension (ioa: IO[_])
def scheduled(cron: String, timezone: TimeZone, startDate: Option[Date], endDate: Option[Date])(using scheduler: CronScheduler): IO[Unit]

Schedules an effect by evaluating a CRON expression.

Schedules an effect by evaluating a CRON expression.

Value parameters

cron

A valid Quartz CRON expression

endDate

An optional Java Date. The evaluation of the CRON expression will end at this date. Default is None, i.e., the expression will be evaluated unlimited.

scheduler

a given CronScheduler which will be used to schedule the effect

startDate

An optional Java Date. The evaluation of the CRON expression will start at this date. Default is None, i.e., the current time (now).

timezone

A Java TimeZone. Used to evaluate the CRON expression. Defaults to the system timezone.

Attributes

Returns

As scheduling an effect is also an effect, this function returns an effect in Unit