{
  "id": "@typed/fx#Fx.mergeAll",
  "canonicalId": "@typed/fx/Fx#mergeAll",
  "symbol": {
    "id": "@typed/fx#Fx.mergeAll",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Fx.mergeAll",
    "kind": "constant",
    "signatures": [
      "export declare const mergeAll: <FX extends ReadonlyArray<Fx<any, any, any>>>(...fx: FX) => Fx<Fx.Success<FX[number]>, Fx.Error<FX[number]>, Fx.Services<FX[number]>>;"
    ],
    "summary": "Merges multiple Fx streams into a single Fx that emits values from all input streams concurrently.",
    "sections": {
      "Why": "`mergeAll` combines a known set of independent push producers without adding\na source-of-sources or choosing a winner.",
      "Concurrency, ordering, and cardinality": "All inputs start concurrently. Every non-interruption value from every input\nis forwarded once. Each input preserves its own order, while values across\ninputs interleave by arrival; there is no buffering to restore argument order.\nAn empty argument list completes without emitting.",
      "Ownership and lifetime": "Typed failures from any input are forwarded and every input environment is\nrequired. Interrupt-only causes from sibling cancellation are suppressed at\nthe Sink boundary. The observing fiber owns all concurrent runs: completion\nwaits for all inputs, and interruption cancels the remaining runs and their\nresource lifetimes."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\nimport { Effect } from \"effect\"\n\nconst events = Fx.mergeAll(\n  Fx.at(\"slow\", \"20 millis\"),\n  Fx.at(\"fast\", \"1 millis\")\n)\nEffect.runPromise(Fx.collectAll(events)).then(console.log)\n// [\"fast\", \"slow\"]"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/mergeAll.ts",
      "line": 48
    },
    "since": "1.0.0",
    "category": "Combining sources"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Fx.mergeAll",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Fx",
    "qualifiedName": "Fx.mergeAll",
    "declarationKey": "declaration:0b9143fb867cdc8553407b25",
    "family": "variable",
    "signatures": [
      "export declare const mergeAll: <FX extends ReadonlyArray<Fx<any, any, any>>>(...fx: FX) => Fx<Fx.Success<FX[number]>, Fx.Error<FX[number]>, Fx.Services<FX[number]>>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/mergeAll.ts",
        "start": {
          "line": 48,
          "column": 14
        },
        "end": {
          "line": 56,
          "column": 4
        }
      }
    ],
    "aliases": [
      "@typed/fx/Fx#mergeAll"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Fx",
    "static": false,
    "importedFrom": "declaration:0b9143fb867cdc8553407b25"
  },
  "declaration": {
    "declarationKey": "declaration:0b9143fb867cdc8553407b25",
    "name": "mergeAll",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const mergeAll: <FX extends ReadonlyArray<Fx<any, any, any>>>(...fx: FX) => Fx<Fx.Success<FX[number]>, Fx.Error<FX[number]>, Fx.Services<FX[number]>>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/mergeAll.ts",
            "start": {
              "line": 48,
              "column": 14
            },
            "end": {
              "line": 56,
              "column": 4
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const mergeAll: <FX extends ReadonlyArray<Fx<any, any, any>>>(...fx: FX) => Fx<Fx.Success<FX[number]>, Fx.Error<FX[number]>, Fx.Services<FX[number]>>;"
    ],
    "typeParameters": [],
    "summary": "Merges multiple Fx streams into a single Fx that emits values from all input streams concurrently.",
    "sections": {
      "Why": "`mergeAll` combines a known set of independent push producers without adding\na source-of-sources or choosing a winner.",
      "Concurrency, ordering, and cardinality": "All inputs start concurrently. Every non-interruption value from every input\nis forwarded once. Each input preserves its own order, while values across\ninputs interleave by arrival; there is no buffering to restore argument order.\nAn empty argument list completes without emitting.",
      "Ownership and lifetime": "Typed failures from any input are forwarded and every input environment is\nrequired. Interrupt-only causes from sibling cancellation are suppressed at\nthe Sink boundary. The observing fiber owns all concurrent runs: completion\nwaits for all inputs, and interruption cancels the remaining runs and their\nresource lifetimes."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\nimport { Effect } from \"effect\"\n\nconst events = Fx.mergeAll(\n  Fx.at(\"slow\", \"20 millis\"),\n  Fx.at(\"fast\", \"1 millis\")\n)\nEffect.runPromise(Fx.collectAll(events)).then(console.log)\n// [\"fast\", \"slow\"]"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/mergeAll.ts",
        "start": {
          "line": 48,
          "column": 14
        },
        "end": {
          "line": 56,
          "column": 4
        }
      }
    ],
    "since": "1.0.0",
    "category": "Combining sources"
  }
}
