import { StreamInternal } from "@effect/core/stream/Stream/operations/_internal/StreamInternal"
/**
* Creates a stream from a `Chunk` of values.
*
* @tsplus static effect/core/stream/Stream.Ops fromChunk
*/
export function fromChunk(chunk: Chunk): Stream {
return new StreamInternal(chunk.isEmpty ? Channel.unit : Channel.write(chunk))
}