Packages

p

eu.timepit

fs2cron

package fs2cron

Source
package.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. fs2cron
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait ZonedTimer[F[_]] extends AnyRef

Value Members

  1. 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.

  2. def durationFrom[F[_]](from: ZonedDateTime, cronExpr: CronExpr)(implicit F: ApplicativeThrow[F]): Stream[F, FiniteDuration]

    Creates a single element stream of the duration between from and the next date-time that matches cronExpr.

  3. 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.

  4. def evalNow[F[_]](implicit zonedTimer: ZonedTimer[F]): Stream[F, ZonedDateTime]

    Creates a single element stream of the current date-time.

  5. def schedule[F[_], A](tasks: List[(CronExpr, Stream[F, A])])(implicit zonedTimer: ZonedTimer[F], F: Concurrent[F]): Stream[F, A]
  6. 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 cronExpr before emitting unit.

  7. object ZonedTimer

Inherited from AnyRef

Inherited from Any

Ungrouped