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.runDrainwhen you don't need results - Use
Stream.mapEffectfor Effect-returning operations - runDrain runs the stream to completion
Loading code editor...