Fs2StreamOps

implicit class Fs2StreamOps[O](stream: Stream[IO, O]) extends LazyLogging

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

trait LazyLogging
class Object
trait Matchable
class Any

Value members

Concrete methods

def timedStream(timeout: FiniteDuration): Stream[IO, O]

Configure this stream to fail if not fed for a certain duration

Configure this stream to fail if not fed for a certain duration

Value parameters:
timeout

Time to wait without consuming items before halting the resulting stream

Returns:

A new Stream with the same structure as the input one, but configured to halt and throw an StreamTimeoutException if no items are received within a time window equal to timeout

Inherited fields

@transient
lazy protected val logger: Logger
Inherited from:
LazyLogging