// ets_tracing: off
import "../../Operator";
import * as A from "../../Collections/Immutable/Chunk";
import * as O from "../../Option";
import * as Q from "../../Queue";
import * as T from "../_internal/effect";
export function emit(a) {
  return T.succeed(A.single(a));
}
export function emitChunk(as) {
  return T.succeed(as);
}
export function fromDequeue(d) {
  return T.chain_(Q.take(d), _ => T.done(_));
}
export function fail(e) {
  return T.fail(O.some(e));
}
export function halt(e) {
  return T.mapError_(T.halt(e), O.some);
}
export function empty() {
  return T.succeed(A.empty());
}
export const end = /*#__PURE__*/T.fail(O.none);
//# sourceMappingURL=index.js.map