{
  "id": "@typed/fx#Fx.mergeLeft",
  "canonicalId": "@typed/fx/Fx#mergeLeft",
  "symbol": {
    "id": "@typed/fx#Fx.mergeLeft",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Fx.mergeLeft",
    "kind": "constant",
    "signatures": [
      "export declare const mergeLeft: {\n    <A2, E2, R2>(that: Fx<A2, E2, R2>): <A, E, R>(self: Fx<A, E, R>) => Fx<A, E | E2, R | R2>;\n    <A, E, R, A2, E2, R2>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>): Fx<A, E | E2, R | R2>;\n};"
    ],
    "summary": "Merges two Fx streams and emits only values from the left stream.\nBoth streams run concurrently; completion when **both** complete.",
    "sections": {
      "Why": "`mergeLeft` keeps the right producer's lifetime and failure signal while suppressing its values.\nEvery left value is emitted once; right emissions only affect scheduling.",
      "Ownership and lifetime": "Both sources are acquired together and owned by the consuming run. Interruption cancels both and\nnormal completion waits for both. A Cause from either source is delivered to the Sink but does not\nintrinsically cancel its sibling; right successes remain suppressed by the filter."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect, Ref } from \"effect\"\nimport { Fx, Sink } from \"@typed/fx\"\n\nconst program = Effect.gen(function* () {\n  const failures = yield* Ref.make(0)\n  yield* Fx.mergeLeft(Fx.succeed(\"visible\"), Fx.fail(\"hidden side failed\")).run(\n    Sink.make(() => Ref.update(failures, (n) => n + 1), () => Effect.void)\n  )\n  return yield* Ref.get(failures) // 1; failure is still delivered\n})"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/additive.ts",
      "line": 232
    },
    "since": "1.0.0",
    "category": "Combining sources"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Fx.mergeLeft",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Fx",
    "qualifiedName": "Fx.mergeLeft",
    "declarationKey": "declaration:1fb2650b07e6059a1c56b1d9",
    "family": "variable",
    "signatures": [
      "export declare const mergeLeft: {\n    <A2, E2, R2>(that: Fx<A2, E2, R2>): <A, E, R>(self: Fx<A, E, R>) => Fx<A, E | E2, R | R2>;\n    <A, E, R, A2, E2, R2>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>): Fx<A, E | E2, R | R2>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/additive.ts",
        "start": {
          "line": 232,
          "column": 14
        },
        "end": {
          "line": 244,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/additive.ts",
        "start": {
          "line": 233,
          "column": 3
        },
        "end": {
          "line": 233,
          "column": 93
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/additive.ts",
        "start": {
          "line": 234,
          "column": 3
        },
        "end": {
          "line": 234,
          "column": 89
        }
      }
    ],
    "aliases": [
      "@typed/fx/Fx#mergeLeft"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Fx",
    "static": false,
    "importedFrom": "declaration:1fb2650b07e6059a1c56b1d9"
  },
  "declaration": {
    "declarationKey": "declaration:1fb2650b07e6059a1c56b1d9",
    "name": "mergeLeft",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const mergeLeft: {\n    <A2, E2, R2>(that: Fx<A2, E2, R2>): <A, E, R>(self: Fx<A, E, R>) => Fx<A, E | E2, R | R2>;\n    <A, E, R, A2, E2, R2>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>): Fx<A, E | E2, R | R2>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/additive.ts",
            "start": {
              "line": 232,
              "column": 14
            },
            "end": {
              "line": 244,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<A2, E2, R2>(that: Fx<A2, E2, R2>): <A, E, R>(self: Fx<A, E, R>) => Fx<A, E | E2, R | R2>;",
          "<A, E, R, A2, E2, R2>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>): Fx<A, E | E2, R | R2>;"
        ],
        "typeParameters": [
          "A2",
          "E2",
          "R2",
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/additive.ts",
            "start": {
              "line": 233,
              "column": 3
            },
            "end": {
              "line": 233,
              "column": 93
            }
          },
          {
            "file": "packages/fx/src/Fx/combinators/additive.ts",
            "start": {
              "line": 234,
              "column": 3
            },
            "end": {
              "line": 234,
              "column": 89
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const mergeLeft: {\n    <A2, E2, R2>(that: Fx<A2, E2, R2>): <A, E, R>(self: Fx<A, E, R>) => Fx<A, E | E2, R | R2>;\n    <A, E, R, A2, E2, R2>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>): Fx<A, E | E2, R | R2>;\n};"
    ],
    "typeParameters": [
      "A2",
      "E2",
      "R2",
      "A",
      "E",
      "R"
    ],
    "summary": "Merges two Fx streams and emits only values from the left stream.\nBoth streams run concurrently; completion when **both** complete.",
    "sections": {
      "Why": "`mergeLeft` keeps the right producer's lifetime and failure signal while suppressing its values.\nEvery left value is emitted once; right emissions only affect scheduling.",
      "Ownership and lifetime": "Both sources are acquired together and owned by the consuming run. Interruption cancels both and\nnormal completion waits for both. A Cause from either source is delivered to the Sink but does not\nintrinsically cancel its sibling; right successes remain suppressed by the filter."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect, Ref } from \"effect\"\nimport { Fx, Sink } from \"@typed/fx\"\n\nconst program = Effect.gen(function* () {\n  const failures = yield* Ref.make(0)\n  yield* Fx.mergeLeft(Fx.succeed(\"visible\"), Fx.fail(\"hidden side failed\")).run(\n    Sink.make(() => Ref.update(failures, (n) => n + 1), () => Effect.void)\n  )\n  return yield* Ref.get(failures) // 1; failure is still delivered\n})"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/additive.ts",
        "start": {
          "line": 232,
          "column": 14
        },
        "end": {
          "line": 244,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/additive.ts",
        "start": {
          "line": 233,
          "column": 3
        },
        "end": {
          "line": 233,
          "column": 93
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/additive.ts",
        "start": {
          "line": 234,
          "column": 3
        },
        "end": {
          "line": 234,
          "column": 89
        }
      }
    ],
    "since": "1.0.0",
    "category": "Combining sources"
  }
}
