org.ragna.comet.utils

Package object with implicit classes providing extension methods

Type members

Classlikes

implicit class DurationValidationOps(duration: FiniteDuration)

Extension methods for durations

Extension methods for durations

Value parameters:
duration

Duration being operated on

Source:
package.scala
implicit class Fs2StreamOps[O](stream: Stream[IO, O]) extends LazyLogging

Extension methods for FS2 streams iterating over IO

Extension methods for FS2 streams iterating over IO

Type parameters:
O

Type of the items contained in the stream

Value parameters:
stream

Stream being operated on

Source:
package.scala
implicit class IODebugOps[A](io: IO[A])

Implicit extension methods for IO instances

Implicit extension methods for IO instances

Type parameters:
A

Type wrapped in IO

Value parameters:
io

An effectful piece of information

Source:
package.scala

Utilities to work with FS2 streams

Utilities to work with FS2 streams

Source:
StreamUtils.scala
final case class Timer[A](action: IO[A], delay: FiniteDuration) extends LazyLogging

Utility class capable of delaying the execution of an IO action for a certain duration

Utility class capable of delaying the execution of an IO action for a certain duration

This timer can be reset or canceled at any moment

Type parameters:
A

Return type of the scheduled action

Value parameters:
action

Action to be executed when timer delay is over

delay

Wait before executing the action

Source:
Timer.scala

Implicits

Implicits

final implicit def DurationValidationOps(duration: FiniteDuration): DurationValidationOps

Extension methods for durations

Extension methods for durations

Value parameters:
duration

Duration being operated on

Source:
package.scala
final implicit def Fs2StreamOps[O](stream: Stream[IO, O]): Fs2StreamOps[O]

Extension methods for FS2 streams iterating over IO

Extension methods for FS2 streams iterating over IO

Type parameters:
O

Type of the items contained in the stream

Value parameters:
stream

Stream being operated on

Source:
package.scala
final implicit def IODebugOps[A](io: IO[A]): IODebugOps[A]

Implicit extension methods for IO instances

Implicit extension methods for IO instances

Type parameters:
A

Type wrapped in IO

Value parameters:
io

An effectful piece of information

Source:
package.scala