All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.devsisters.shardcake.StreamReplier.scala Maven / Gradle / Ivy

There is a newer version: 2.4.3
Show newest version
package com.devsisters.shardcake

import zio.stream.ZStream
import zio.{ URIO, ZIO }

/**
 * A metadata object that allows sending a stream of responses back to the sender
 */
final case class StreamReplier[-R](id: String) { self =>
  def replyStream(replies: ZStream[Any, Nothing, R]): URIO[Sharding, Unit] =
    ZIO.serviceWithZIO[Sharding](_.replyStream(replies, self))
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy