// ets_tracing: off import * as Q from "../../../Queue/index.js" import type * as C from "./core.js" import * as ForEachChunk from "./forEachChunk.js" /** * Create a sink which enqueues each element into the specified queue. */ export function fromQueue( queue: Q.XEnqueue ): C.Sink { return ForEachChunk.forEachChunk((_) => Q.offerAll_(queue, _) ) }