{
  "id": "@typed/fx/Fx#takeUntil",
  "canonicalId": "@typed/fx/Fx#takeUntil",
  "symbol": {
    "id": "@typed/fx/Fx#takeUntil",
    "packageName": "@typed/fx",
    "moduleName": "Fx",
    "exportName": "takeUntil",
    "kind": "constant",
    "signatures": [
      "export declare const takeUntil: {\n    <A>(predicate: (a: A) => boolean): <E, R>(fx: Fx<A, E, R>) => Fx<A, E, R>;\n    <A, E, R>(fx: Fx<A, E, R>, predicate: (a: A) => boolean): Fx<A, E, R>;\n};"
    ],
    "summary": "Takes elements from an Fx until a predicate returns true.\nThe element that satisfies the predicate is not included in the output.",
    "sections": {
      "Why": "`takeUntil` forwards the ordered prefix before the first match, then completes without emitting\nthe matching value.",
      "Ownership and lifetime": "Matching triggers the sink's early-exit path, stopping upstream work. No resources are acquired;\nearlier failures and consumer interruption remain observable."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\nconst beforeThree = Fx.fromIterable([1, 2, 3]).pipe(Fx.takeUntil((n) => n === 3))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/takeUntil.ts",
      "line": 32
    },
    "since": "1.0.0",
    "category": "Selecting values"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/Fx#takeUntil",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": "Fx",
    "consumerSpecifier": "@typed/fx/Fx",
    "exportName": "takeUntil",
    "qualifiedName": "takeUntil",
    "declarationKey": "declaration:3b59fbabae103f9a885c15c0",
    "family": "variable",
    "signatures": [
      "export declare const takeUntil: {\n    <A>(predicate: (a: A) => boolean): <E, R>(fx: Fx<A, E, R>) => Fx<A, E, R>;\n    <A, E, R>(fx: Fx<A, E, R>, predicate: (a: A) => boolean): Fx<A, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/takeUntil.ts",
        "start": {
          "line": 32,
          "column": 14
        },
        "end": {
          "line": 48,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/takeUntil.ts",
        "start": {
          "line": 33,
          "column": 3
        },
        "end": {
          "line": 33,
          "column": 77
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/takeUntil.ts",
        "start": {
          "line": 34,
          "column": 3
        },
        "end": {
          "line": 34,
          "column": 73
        }
      }
    ],
    "aliases": [
      "@typed/fx#Fx.takeUntil"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:3b59fbabae103f9a885c15c0",
    "name": "takeUntil",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const takeUntil: {\n    <A>(predicate: (a: A) => boolean): <E, R>(fx: Fx<A, E, R>) => Fx<A, E, R>;\n    <A, E, R>(fx: Fx<A, E, R>, predicate: (a: A) => boolean): Fx<A, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/takeUntil.ts",
            "start": {
              "line": 32,
              "column": 14
            },
            "end": {
              "line": 48,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<A>(predicate: (a: A) => boolean): <E, R>(fx: Fx<A, E, R>) => Fx<A, E, R>;",
          "<A, E, R>(fx: Fx<A, E, R>, predicate: (a: A) => boolean): Fx<A, E, R>;"
        ],
        "typeParameters": [
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/takeUntil.ts",
            "start": {
              "line": 33,
              "column": 3
            },
            "end": {
              "line": 33,
              "column": 77
            }
          },
          {
            "file": "packages/fx/src/Fx/combinators/takeUntil.ts",
            "start": {
              "line": 34,
              "column": 3
            },
            "end": {
              "line": 34,
              "column": 73
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const takeUntil: {\n    <A>(predicate: (a: A) => boolean): <E, R>(fx: Fx<A, E, R>) => Fx<A, E, R>;\n    <A, E, R>(fx: Fx<A, E, R>, predicate: (a: A) => boolean): Fx<A, E, R>;\n};"
    ],
    "typeParameters": [
      "A",
      "E",
      "R"
    ],
    "summary": "Takes elements from an Fx until a predicate returns true.\nThe element that satisfies the predicate is not included in the output.",
    "sections": {
      "Why": "`takeUntil` forwards the ordered prefix before the first match, then completes without emitting\nthe matching value.",
      "Ownership and lifetime": "Matching triggers the sink's early-exit path, stopping upstream work. No resources are acquired;\nearlier failures and consumer interruption remain observable."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\nconst beforeThree = Fx.fromIterable([1, 2, 3]).pipe(Fx.takeUntil((n) => n === 3))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/takeUntil.ts",
        "start": {
          "line": 32,
          "column": 14
        },
        "end": {
          "line": 48,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/takeUntil.ts",
        "start": {
          "line": 33,
          "column": 3
        },
        "end": {
          "line": 33,
          "column": 77
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/takeUntil.ts",
        "start": {
          "line": 34,
          "column": 3
        },
        "end": {
          "line": 34,
          "column": 73
        }
      }
    ],
    "since": "1.0.0",
    "category": "Selecting values"
  }
}
