Function
toReadable
(stream: Stream.Stream<string | Uint8Array, E, R>)
Source from the content-addressed store, hash-verified
| 188 | * @since 4.0.0 |
| 189 | */ |
| 190 | export const toReadable = <E, R>(stream: Stream.Stream<string | Uint8Array, E, R>): Effect.Effect<Readable, never, R> => |
| 191 | Effect.map( |
| 192 | Effect.context<R>(), |
| 193 | (context) => new StreamAdapter(context, stream) |
| 194 | ) |
| 195 | |
| 196 | /** |
| 197 | * Converts a service-free Effect `Stream` into a Node `Readable` using an |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…