EffectTalk

Stream.runDrain for side effects

Use `Stream.runDrain` when you only care about side effects, not the values. The stream runs to completion but results are discarded.

Useful for logging, sending to a sink, or triggering actions.

  • Use `Stream.runDrain` when you don't need results
  • Use `Stream.mapEffect` for Effect-returning operations
  • runDrain runs the stream to completion
Loading code editor...