{
  "id": "@typed/fx#Fx.zipRight",
  "canonicalId": "@typed/fx/Fx#zipRight",
  "symbol": {
    "id": "@typed/fx#Fx.zipRight",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Fx.zipRight",
    "kind": "constant",
    "signatures": [
      "export declare const zipRight: {\n    <A2, E2, R2>(that: Fx<A2, E2, R2>): <A, E, R>(self: Fx<A, E, R>) => Fx<A2, E | E2, R | R2>;\n    <A, E, R, A2, E2, R2>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>): Fx<A2, E | E2, R | R2>;\n};"
    ],
    "summary": "Zips two Fx streams in strict lockstep and emits only the right value.\nCompletes when the **first** of the two streams completes.",
    "sections": {
      "Why": "`zipRight` pairs both sources but deliberately keeps the right payload. It emits once per pair,\nin pairing order, and never emits an unmatched right value.",
      "Ownership and lifetime": "Both runs belong to the consumer. The first completion or consumer interruption cancels the\nremaining run and releases the lockstep queues. Failure is Sink delivery, not an automatic stop;\npairing can continue when the failing producer remains active and later emits a value."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Cause, Effect } from \"effect\"\nimport { Fx, Sink } from \"@typed/fx\"\n\nconst left = Fx.make<number, string>((sink) =>\n  sink.onFailure(Cause.fail(\"warning\")).pipe(Effect.andThen(sink.onSuccess(1)))\n)\nconst program = Fx.zipRight(left, Fx.succeed(\"paired\")).run(\n  Sink.make(Effect.logError, Effect.log)\n) // logs the failure and then \"paired\""
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/additive.ts",
      "line": 187
    },
    "since": "1.0.0",
    "category": "Combining sources"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Fx.zipRight",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Fx",
    "qualifiedName": "Fx.zipRight",
    "declarationKey": "declaration:0b43f19fadadb85482df5c49",
    "family": "variable",
    "signatures": [
      "export declare const zipRight: {\n    <A2, E2, R2>(that: Fx<A2, E2, R2>): <A, E, R>(self: Fx<A, E, R>) => Fx<A2, E | E2, R | R2>;\n    <A, E, R, A2, E2, R2>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>): Fx<A2, E | E2, R | R2>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/additive.ts",
        "start": {
          "line": 187,
          "column": 14
        },
        "end": {
          "line": 194,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/additive.ts",
        "start": {
          "line": 188,
          "column": 3
        },
        "end": {
          "line": 188,
          "column": 94
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/additive.ts",
        "start": {
          "line": 189,
          "column": 3
        },
        "end": {
          "line": 189,
          "column": 90
        }
      }
    ],
    "aliases": [
      "@typed/fx/Fx#zipRight"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Fx",
    "static": false,
    "importedFrom": "declaration:0b43f19fadadb85482df5c49"
  },
  "declaration": {
    "declarationKey": "declaration:0b43f19fadadb85482df5c49",
    "name": "zipRight",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const zipRight: {\n    <A2, E2, R2>(that: Fx<A2, E2, R2>): <A, E, R>(self: Fx<A, E, R>) => Fx<A2, E | E2, R | R2>;\n    <A, E, R, A2, E2, R2>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>): Fx<A2, E | E2, R | R2>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/additive.ts",
            "start": {
              "line": 187,
              "column": 14
            },
            "end": {
              "line": 194,
              "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<A2, E | E2, R | R2>;",
          "<A, E, R, A2, E2, R2>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>): Fx<A2, E | E2, R | R2>;"
        ],
        "typeParameters": [
          "A2",
          "E2",
          "R2",
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/additive.ts",
            "start": {
              "line": 188,
              "column": 3
            },
            "end": {
              "line": 188,
              "column": 94
            }
          },
          {
            "file": "packages/fx/src/Fx/combinators/additive.ts",
            "start": {
              "line": 189,
              "column": 3
            },
            "end": {
              "line": 189,
              "column": 90
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const zipRight: {\n    <A2, E2, R2>(that: Fx<A2, E2, R2>): <A, E, R>(self: Fx<A, E, R>) => Fx<A2, E | E2, R | R2>;\n    <A, E, R, A2, E2, R2>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>): Fx<A2, E | E2, R | R2>;\n};"
    ],
    "typeParameters": [
      "A2",
      "E2",
      "R2",
      "A",
      "E",
      "R"
    ],
    "summary": "Zips two Fx streams in strict lockstep and emits only the right value.\nCompletes when the **first** of the two streams completes.",
    "sections": {
      "Why": "`zipRight` pairs both sources but deliberately keeps the right payload. It emits once per pair,\nin pairing order, and never emits an unmatched right value.",
      "Ownership and lifetime": "Both runs belong to the consumer. The first completion or consumer interruption cancels the\nremaining run and releases the lockstep queues. Failure is Sink delivery, not an automatic stop;\npairing can continue when the failing producer remains active and later emits a value."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Cause, Effect } from \"effect\"\nimport { Fx, Sink } from \"@typed/fx\"\n\nconst left = Fx.make<number, string>((sink) =>\n  sink.onFailure(Cause.fail(\"warning\")).pipe(Effect.andThen(sink.onSuccess(1)))\n)\nconst program = Fx.zipRight(left, Fx.succeed(\"paired\")).run(\n  Sink.make(Effect.logError, Effect.log)\n) // logs the failure and then \"paired\""
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/additive.ts",
        "start": {
          "line": 187,
          "column": 14
        },
        "end": {
          "line": 194,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/additive.ts",
        "start": {
          "line": 188,
          "column": 3
        },
        "end": {
          "line": 188,
          "column": 94
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/additive.ts",
        "start": {
          "line": 189,
          "column": 3
        },
        "end": {
          "line": 189,
          "column": 90
        }
      }
    ],
    "since": "1.0.0",
    "category": "Combining sources"
  }
}
