{
  "id": "@typed/fx#Fx.zip",
  "canonicalId": "@typed/fx/Fx#zip",
  "symbol": {
    "id": "@typed/fx#Fx.zip",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Fx.zip",
    "kind": "constant",
    "signatures": [
      "export declare const zip: {\n    <A2, E2, R2>(that: Fx<A2, E2, R2>): <A, E, R>(self: Fx<A, E, R>) => Fx<readonly [\n        A,\n        A2\n    ], E | E2, R | R2>;\n    <A, E, R, A2, E2, R2>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>): Fx<readonly [\n        A,\n        A2\n    ], E | E2, R | R2>;\n};"
    ],
    "summary": "Zips two Fx streams in strict lockstep: emits a pair `[a, b]` only when both\nstreams have produced their next value. Emits the i-th pair when both have\nproduced at least i values.\n\n**Completion:** The zipped stream completes when the **first** of the two\nstreams completes (no further pairs are emitted). The other stream is\ninterrupted.\n\n**Errors:** The first failure from either stream fails the zipped stream.",
    "sections": {
      "Why": "`zip` preserves one-to-one positional correspondence between two producers. Values wait in\nunbounded queues until their counterpart arrives, and pairs emit in each source's order.",
      "Ownership and lifetime": "Both child runs and queues belong to the consumer. The first completion, any failure, or\ninterruption stops both fibers and discards unmatched queued values."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\nconst pairs = Fx.zip(Fx.fromIterable([1, 2]), Fx.fromIterable([\"a\", \"b\"]))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/zip.ts",
      "line": 44
    },
    "since": "1.0.0",
    "category": "Combining sources"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Fx.zip",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Fx",
    "qualifiedName": "Fx.zip",
    "declarationKey": "declaration:13458d97b1b2940abda57e86",
    "family": "variable",
    "signatures": [
      "export declare const zip: {\n    <A2, E2, R2>(that: Fx<A2, E2, R2>): <A, E, R>(self: Fx<A, E, R>) => Fx<readonly [\n        A,\n        A2\n    ], E | E2, R | R2>;\n    <A, E, R, A2, E2, R2>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>): Fx<readonly [\n        A,\n        A2\n    ], E | E2, R | R2>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 44,
          "column": 14
        },
        "end": {
          "line": 95,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 45,
          "column": 3
        },
        "end": {
          "line": 47,
          "column": 75
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 48,
          "column": 3
        },
        "end": {
          "line": 51,
          "column": 43
        }
      }
    ],
    "aliases": [
      "@typed/fx/Fx#zip"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Fx",
    "static": false,
    "importedFrom": "declaration:13458d97b1b2940abda57e86"
  },
  "declaration": {
    "declarationKey": "declaration:13458d97b1b2940abda57e86",
    "name": "zip",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const zip: {\n    <A2, E2, R2>(that: Fx<A2, E2, R2>): <A, E, R>(self: Fx<A, E, R>) => Fx<readonly [\n        A,\n        A2\n    ], E | E2, R | R2>;\n    <A, E, R, A2, E2, R2>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>): Fx<readonly [\n        A,\n        A2\n    ], E | E2, R | R2>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/zip.ts",
            "start": {
              "line": 44,
              "column": 14
            },
            "end": {
              "line": 95,
              "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<readonly [\n    A,\n    A2\n], E | E2, R | R2>;",
          "<A, E, R, A2, E2, R2>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>): Fx<readonly [\n    A,\n    A2\n], E | E2, R | R2>;"
        ],
        "typeParameters": [
          "A2",
          "E2",
          "R2",
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/zip.ts",
            "start": {
              "line": 45,
              "column": 3
            },
            "end": {
              "line": 47,
              "column": 75
            }
          },
          {
            "file": "packages/fx/src/Fx/combinators/zip.ts",
            "start": {
              "line": 48,
              "column": 3
            },
            "end": {
              "line": 51,
              "column": 43
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const zip: {\n    <A2, E2, R2>(that: Fx<A2, E2, R2>): <A, E, R>(self: Fx<A, E, R>) => Fx<readonly [\n        A,\n        A2\n    ], E | E2, R | R2>;\n    <A, E, R, A2, E2, R2>(self: Fx<A, E, R>, that: Fx<A2, E2, R2>): Fx<readonly [\n        A,\n        A2\n    ], E | E2, R | R2>;\n};"
    ],
    "typeParameters": [
      "A2",
      "E2",
      "R2",
      "A",
      "E",
      "R"
    ],
    "summary": "Zips two Fx streams in strict lockstep: emits a pair `[a, b]` only when both\nstreams have produced their next value. Emits the i-th pair when both have\nproduced at least i values.\n\n**Completion:** The zipped stream completes when the **first** of the two\nstreams completes (no further pairs are emitted). The other stream is\ninterrupted.\n\n**Errors:** The first failure from either stream fails the zipped stream.",
    "sections": {
      "Why": "`zip` preserves one-to-one positional correspondence between two producers. Values wait in\nunbounded queues until their counterpart arrives, and pairs emit in each source's order.",
      "Ownership and lifetime": "Both child runs and queues belong to the consumer. The first completion, any failure, or\ninterruption stops both fibers and discards unmatched queued values."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\nconst pairs = Fx.zip(Fx.fromIterable([1, 2]), Fx.fromIterable([\"a\", \"b\"]))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 44,
          "column": 14
        },
        "end": {
          "line": 95,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 45,
          "column": 3
        },
        "end": {
          "line": 47,
          "column": 75
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/zip.ts",
        "start": {
          "line": 48,
          "column": 3
        },
        "end": {
          "line": 51,
          "column": 43
        }
      }
    ],
    "since": "1.0.0",
    "category": "Combining sources"
  }
}
