ZStreamPlatformSpecificConstructors

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

Type members

Classlikes

Accepted connection made to a specific channel AsynchronousServerSocketChannel

Accepted connection made to a specific channel AsynchronousServerSocketChannel

Companion:
object
object Connection
Companion:
class

Value members

Concrete methods

def effectAsync[R, E, A](register: Emit[R, E, A, Unit] => 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, Unit] => 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, Unit] => 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]] => Unit => 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, Unit] => 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 fromBlockingIterator[A](iterator: => Iterator[A], maxChunkSize: Int): ZStream[Blocking, Throwable, A]

Creates a stream from an blocking iterator that may throw exceptions.

Creates a stream from an blocking iterator that may throw exceptions.

def fromBlockingJavaIterator[A](iter: => Iterator[A], maxChunkSize: Int): ZStream[Blocking, Throwable, A]

Creates a stream from an blocking Java iterator that may throw exceptions.

Creates a stream from an blocking Java iterator that may throw exceptions.

def fromFile(path: => Path, chunkSize: Int): ZStream[Blocking, Throwable, Byte]

Creates a stream of bytes from a file at the specified path.

Creates a stream of bytes from a file at the specified path.

Creates a stream from a java.io.InputStream. Note: the input stream will not be explicitly closed after it is exhausted.

Creates a stream from a java.io.InputStream. Note: the input stream will not be explicitly closed after it is exhausted.

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.

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

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

final def fromJavaStream[A](stream: => Stream[A]): ZStream[Any, Throwable, A]

Creates a stream from a Java stream

Creates a stream from a Java stream

final def fromJavaStreamEffect[R, A](stream: ZIO[R, Throwable, Stream[A]]): ZStream[R, Throwable, A]

Creates a stream from a Java stream

Creates a stream from a Java stream

final def fromJavaStreamManaged[R, A](stream: ZManaged[R, Throwable, Stream[A]]): ZStream[R, Throwable, A]

Creates a stream from a managed Java stream

Creates a stream from a managed Java stream

final def fromJavaStreamTotal[A](stream: => Stream[A]): ZStream[Any, Nothing, A]

Creates a stream from a Java stream

Creates a stream from a Java stream

Creates a stream from a callback that writes to java.io.OutputStream. Note: the input stream will be closed after the write is done.

Creates a stream from a callback that writes to java.io.OutputStream. Note: the input stream will be closed after the write is done.

def fromReader(reader: => Reader, chunkSize: Int): ZStream[Blocking, IOException, Char]

Creates a stream from java.io.Reader.

Creates a stream from java.io.Reader.

def fromReaderEffect[R](reader: => ZIO[R, IOException, Reader], chunkSize: Int): ZStream[R & Blocking, IOException, Char]

Creates a stream from an effect producing java.io.Reader.

Creates a stream from an effect producing java.io.Reader.

def fromReaderManaged[R](reader: => ZManaged[R, IOException, Reader], chunkSize: Int): ZStream[R & Blocking, IOException, Char]

Creates a stream from managed java.io.Reader.

Creates a stream from managed java.io.Reader.

final def fromResource(path: String, chunkSize: Int): ZStream[Blocking, IOException, Byte]

Creates a stream from the resource specified in path

Creates a stream from the resource specified in path

Create a stream of accepted connection from server socket Emit socket Connection from which you can read / write and ensure it is closed after it is used

Create a stream of accepted connection from server socket Emit socket Connection from which you can read / write and ensure it is closed after it is used