{
  "id": "@typed/fx/RefIterable#takeWhile",
  "canonicalId": "@typed/fx/RefIterable#takeWhile",
  "symbol": {
    "id": "@typed/fx/RefIterable#takeWhile",
    "packageName": "@typed/fx",
    "moduleName": "RefIterable",
    "exportName": "takeWhile",
    "kind": "constant",
    "signatures": [
      "export declare const takeWhile: {\n    <A>(predicate: (a: A) => boolean): <E, R>(ref: RefIterable<A, E, R>) => Effect.Effect<Iterable<A>, E, R>;\n    <A, E, R>(ref: RefIterable<A, E, R>, predicate: (a: A) => boolean): Effect.Effect<Iterable<A>, E, R>;\n};"
    ],
    "summary": "Take values from a RefIterable while a predicate is true.",
    "sections": {
      "Why": "Applies take while to the committed iterable value and publishes only the result, preserving its\nelement order and equality rules.",
      "Ownership and lifetime": "Running take while performs one serialized iterable transition and resolves with its committed\nvalue. It acquires no resource; failures and services remain those of the source ref."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/fx/src/RefSubject/RefIterable.ts",
      "line": 218
    },
    "since": "1.18.0",
    "category": "State updates"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/RefIterable#takeWhile",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": "RefIterable",
    "consumerSpecifier": "@typed/fx/RefIterable",
    "exportName": "takeWhile",
    "qualifiedName": "takeWhile",
    "declarationKey": "declaration:5c23a0a3dae0835eca4f67a2",
    "family": "variable",
    "signatures": [
      "export declare const takeWhile: {\n    <A>(predicate: (a: A) => boolean): <E, R>(ref: RefIterable<A, E, R>) => Effect.Effect<Iterable<A>, E, R>;\n    <A, E, R>(ref: RefIterable<A, E, R>, predicate: (a: A) => boolean): Effect.Effect<Iterable<A>, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefIterable.ts",
        "start": {
          "line": 218,
          "column": 14
        },
        "end": {
          "line": 228,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefIterable.ts",
        "start": {
          "line": 219,
          "column": 3
        },
        "end": {
          "line": 221,
          "column": 76
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefIterable.ts",
        "start": {
          "line": 222,
          "column": 3
        },
        "end": {
          "line": 225,
          "column": 39
        }
      }
    ],
    "aliases": [
      "@typed/fx#RefIterable.takeWhile"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:5c23a0a3dae0835eca4f67a2",
    "name": "takeWhile",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const takeWhile: {\n    <A>(predicate: (a: A) => boolean): <E, R>(ref: RefIterable<A, E, R>) => Effect.Effect<Iterable<A>, E, R>;\n    <A, E, R>(ref: RefIterable<A, E, R>, predicate: (a: A) => boolean): Effect.Effect<Iterable<A>, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefIterable.ts",
            "start": {
              "line": 218,
              "column": 14
            },
            "end": {
              "line": 228,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<A>(predicate: (a: A) => boolean): <E, R>(ref: RefIterable<A, E, R>) => Effect.Effect<Iterable<A>, E, R>;",
          "<A, E, R>(ref: RefIterable<A, E, R>, predicate: (a: A) => boolean): Effect.Effect<Iterable<A>, E, R>;"
        ],
        "typeParameters": [
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/RefSubject/RefIterable.ts",
            "start": {
              "line": 219,
              "column": 3
            },
            "end": {
              "line": 221,
              "column": 76
            }
          },
          {
            "file": "packages/fx/src/RefSubject/RefIterable.ts",
            "start": {
              "line": 222,
              "column": 3
            },
            "end": {
              "line": 225,
              "column": 39
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const takeWhile: {\n    <A>(predicate: (a: A) => boolean): <E, R>(ref: RefIterable<A, E, R>) => Effect.Effect<Iterable<A>, E, R>;\n    <A, E, R>(ref: RefIterable<A, E, R>, predicate: (a: A) => boolean): Effect.Effect<Iterable<A>, E, R>;\n};"
    ],
    "typeParameters": [
      "A",
      "E",
      "R"
    ],
    "summary": "Take values from a RefIterable while a predicate is true.",
    "sections": {
      "Why": "Applies take while to the committed iterable value and publishes only the result, preserving its\nelement order and equality rules.",
      "Ownership and lifetime": "Running take while performs one serialized iterable transition and resolves with its committed\nvalue. It acquires no resource; failures and services remain those of the source ref."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/fx/src/RefSubject/RefIterable.ts",
        "start": {
          "line": 218,
          "column": 14
        },
        "end": {
          "line": 228,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefIterable.ts",
        "start": {
          "line": 219,
          "column": 3
        },
        "end": {
          "line": 221,
          "column": 76
        }
      },
      {
        "file": "packages/fx/src/RefSubject/RefIterable.ts",
        "start": {
          "line": 222,
          "column": 3
        },
        "end": {
          "line": 225,
          "column": 39
        }
      }
    ],
    "since": "1.18.0",
    "category": "State updates"
  }
}
