"use strict"
Object.defineProperty(exports, "__esModule", { value: true })
exports.flattenTake = void 0
const flattenChunks_1 = require("./flattenChunks")
const flattenExitOption_1 = require("./flattenExitOption")
/**
 * Unwraps `Exit` values and flatten chunks that also signify end-of-stream by failing with `None`.
 */
function flattenTake(self) {
  return (0, flattenChunks_1.flattenChunks)(
    (0, flattenExitOption_1.flattenExitOption)(self)
  )
}
exports.flattenTake = flattenTake
//# sourceMappingURL=flattenTake.js.map
