(
queue: Queue.Enqueue<In>,
options?: {
readonly shutdown?: boolean | undefined
}
)
| 1475 | |
| 1476 | /** @internal */ |
| 1477 | export const fromQueue = <In>( |
| 1478 | queue: Queue.Enqueue<In>, |
| 1479 | options?: { |
| 1480 | readonly shutdown?: boolean | undefined |
| 1481 | } |
| 1482 | ): Sink.Sink<void, In> => |
| 1483 | options?.shutdown ? |
| 1484 | unwrapScoped( |
| 1485 | Effect.map( |
| 1486 | Effect.acquireRelease(Effect.succeed(queue), Queue.shutdown), |
| 1487 | fromQueue |
| 1488 | ) |
| 1489 | ) : |
| 1490 | forEachChunk((input: Chunk.Chunk<In>) => Queue.offerAll(queue, input)) |
| 1491 | |
| 1492 | /** @internal */ |
| 1493 | export const head = <In>(): Sink.Sink<Option.Option<In>, In, In> => |
no test coverage detected