ZStreamPlatformSpecificConstructors

class Object
trait Matchable
class Any
object ZStream.type
ZStream.type

Value members

Concrete methods

def effectAsync[R, E, A](register: (ZIO[R, Option[E], Chunk[A]] => Future[Boolean]) => Unit, outputBuffer: Int): ZStream[R, E, A]

Creates a stream from an asynchronous callback that can be called multiple times. The optionality of the error type E can be used to signal the end of the stream, by setting it to None.

Creates a stream from an asynchronous callback that can be called multiple times. The optionality of the error type E can be used to signal the end of the stream, by setting it to None.

def effectAsyncInterrupt[R, E, A](register: Emit[R, E, A, Future[Boolean]] => Either[Canceler[R], ZStream[R, E, A]], outputBuffer: Int): ZStream[R, E, A]

Creates a stream from an asynchronous callback that can be called multiple times. The registration of the callback returns either a canceler or synchronously returns a stream. The optionality of the error type E can be used to signal the end of the stream, by setting it to None.

Creates a stream from an asynchronous callback that can be called multiple times. The registration of the callback returns either a canceler or synchronously returns a stream. The optionality of the error type E can be used to signal the end of the stream, by setting it to None.

def effectAsyncM[R, E, A](register: Emit[R, E, A, Future[Boolean]] => ZIO[R, E, Any], outputBuffer: Int): ZStream[R, E, A]

Creates a stream from an asynchronous callback that can be called multiple times The registration of the callback itself returns an effect. The optionality of the error type E can be used to signal the end of the stream, by setting it to None.

Creates a stream from an asynchronous callback that can be called multiple times The registration of the callback itself returns an effect. The optionality of the error type E can be used to signal the end of the stream, by setting it to None.

def effectAsyncManaged[R, E, A](register: (ZIO[R, Option[E], Chunk[A]] => Future[Boolean]) => ZManaged[R, E, Any], outputBuffer: Int): ZStream[R, E, A]

Creates a stream from an asynchronous callback that can be called multiple times. The registration of the callback itself returns an a managed resource. The optionality of the error type E can be used to signal the end of the stream, by setting it to None.

Creates a stream from an asynchronous callback that can be called multiple times. The registration of the callback itself returns an a managed resource. The optionality of the error type E can be used to signal the end of the stream, by setting it to None.

def effectAsyncMaybe[R, E, A](register: Emit[R, E, A, Future[Boolean]] => Option[ZStream[R, E, A]], outputBuffer: Int): ZStream[R, E, A]

Creates a stream from an asynchronous callback that can be called multiple times. The registration of the callback can possibly return the stream synchronously. The optionality of the error type E can be used to signal the end of the stream, by setting it to None.

Creates a stream from an asynchronous callback that can be called multiple times. The registration of the callback can possibly return the stream synchronously. The optionality of the error type E can be used to signal the end of the stream, by setting it to None.

def fromInputStream(is: => InputStream, chunkSize: Int): ZStream[Any, IOException, Byte]

Creates a stream from a java.io.InputStream

Creates a stream from a java.io.InputStream

def fromInputStreamEffect[R](is: ZIO[R, IOException, InputStream], chunkSize: Int): ZStream[R, IOException, Byte]

Creates a stream from a java.io.InputStream. Ensures that the input stream is closed after it is exhausted.

Creates a stream from a java.io.InputStream. Ensures that the input stream is closed after it is exhausted.

def fromInputStreamManaged[R](is: ZManaged[R, IOException, InputStream], chunkSize: Int): ZStream[R, IOException, Byte]

Creates a stream from a managed java.io.InputStream value.

Creates a stream from a managed java.io.InputStream value.