(
f: (queue: Queue.Queue<A, E | Cause.Done>) => Effect.Effect<unknown, E, R | Scope.Scope>,
options?: {
readonly bufferSize?: number | undefined
readonly strategy?: "sliding" | "dropping" | "suspend" | undefined
}
)
| 775 | * **Details** |
| 776 | * |
| 777 | * The stream factory is evaluated each time the stream is run. |
| 778 | * |
| 779 | * **Example** (Creating a lazily constructed stream) |
| 780 | * |
| 781 | * ```ts import.meta.vitest |
| 782 | * import { Effect, Stream } from "effect" |
| 783 | * |
| 784 | * await Effect.runPromise(Stream.suspend(() => Stream.make(1, 2, 3)).pipe(Stream.runCollect)) // => [1, 2, 3] |
| 785 | * ``` |
| 786 | * |
searching dependent graphs…