// tracing: off
import { pipe } from "../../Function"
import { chainPar } from "./chainPar"
import { fromEffect } from "./fromEffect"
/**
 * Maps over elements of the stream with the specified effectful function,
 * executing up to `n` invocations of `f` concurrently. The element order
 * is not enforced by this combinator, and elements may be reordered.
 */

export function mapMParUnordered(n) {
  return (f) => (self) => chainPar(n)((a) => fromEffect(f(a)))(self)
}
//# sourceMappingURL=mapMParUnordered.js.map
