package fs2cron
- Source
- package.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- fs2cron
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- trait ZonedTimer[F[_]] extends AnyRef
Value Members
- def awakeEveryCron[F[_]](cronExpr: CronExpr)(implicit zonedTimer: ZonedTimer[F], F: ApplicativeThrow[F]): Stream[F, Unit]
Creates a discrete stream that emits unit at every date-time from now that matches
cronExpr. - def durationFrom[F[_]](from: ZonedDateTime, cronExpr: CronExpr)(implicit F: ApplicativeThrow[F]): Stream[F, FiniteDuration]
Creates a single element stream of the duration between
fromand the next date-time that matchescronExpr. - def durationFromNow[F[_]](cronExpr: CronExpr)(implicit zonedTimer: ZonedTimer[F], F: ApplicativeThrow[F]): Stream[F, FiniteDuration]
Creates a single element stream of the duration between the current date-time and the next date-time that matches
cronExpr. - def evalNow[F[_]](implicit zonedTimer: ZonedTimer[F]): Stream[F, ZonedDateTime]
Creates a single element stream of the current date-time.
- def schedule[F[_], A](tasks: List[(CronExpr, Stream[F, A])])(implicit zonedTimer: ZonedTimer[F], F: Concurrent[F]): Stream[F, A]
- def sleepCron[F[_]](cronExpr: CronExpr)(implicit zonedTimer: ZonedTimer[F], F: ApplicativeThrow[F]): Stream[F, Unit]
Creates a single element stream that waits until the next date-time that matches
cronExprbefore emitting unit. - object ZonedTimer