{
  "id": "@typed/fx#Sink.Sink.WithEarlyExit",
  "canonicalId": "@typed/fx/Sink#Sink.WithEarlyExit",
  "symbol": {
    "id": "@typed/fx#Sink.Sink.WithEarlyExit",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Sink.Sink.WithEarlyExit",
    "kind": "interface",
    "signatures": [
      "interface WithEarlyExit<A, E, R> extends Sink<A, E, R> {\n    readonly earlyExit: Effect<void>;\n}"
    ],
    "summary": "A sink that can ask its producer callback to stop early.",
    "sections": {
      "Why": "Bounded consumers such as `slice` and `dropAfter` need to end production without encoding\ntermination as a typed failure.",
      "Ownership and lifetime": "`earlyExit` completes the surrounding consumer effect. Further callback deliveries are ignored;\ninterruption and cleanup remain owned by the surrounding producer effect.",
      "Property: earlyExit": "Completes the surrounding early-exit consumer and suppresses later deliveries.",
      "Property: earlyExit: Why": "Normal bounded completion remains distinct from typed producer failure.",
      "Property: earlyExit: Ownership and lifetime": "The surrounding `withEarlyExit` execution owns this Effect; running it aborts its callback fiber."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport type * as Sink from \"@typed/fx/Sink\"\nconst stop = (sink: Sink.Sink.WithEarlyExit<unknown, never, never>) => sink.earlyExit"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Sink/Sink.ts",
      "line": 341
    },
    "since": "1.0.0",
    "category": "Stopping delivery"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Sink.Sink.WithEarlyExit",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Sink",
    "qualifiedName": "Sink.Sink.WithEarlyExit",
    "declarationKey": "declaration:13cc85c3f2001c3c47bcc954",
    "family": "interface",
    "signatures": [
      "interface WithEarlyExit<A, E, R> extends Sink<A, E, R> {\n    readonly earlyExit: Effect<void>;\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Sink/Sink.ts",
        "start": {
          "line": 341,
          "column": 3
        },
        "end": {
          "line": 356,
          "column": 4
        }
      },
      {
        "file": "packages/fx/src/Sink/Sink.ts",
        "start": {
          "line": 355,
          "column": 5
        },
        "end": {
          "line": 355,
          "column": 38
        }
      }
    ],
    "aliases": [
      "@typed/fx/Sink#Sink.WithEarlyExit"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Sink.Sink",
    "static": false,
    "importedFrom": "declaration:13cc85c3f2001c3c47bcc954"
  },
  "declaration": {
    "declarationKey": "declaration:13cc85c3f2001c3c47bcc954",
    "name": "WithEarlyExit",
    "family": "interface",
    "facets": [
      {
        "family": "interface",
        "syntaxKind": "InterfaceDeclaration",
        "signatures": [
          "interface WithEarlyExit<A, E, R> extends Sink<A, E, R> {\n    readonly earlyExit: Effect<void>;\n}"
        ],
        "typeParameters": [
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Sink/Sink.ts",
            "start": {
              "line": 341,
              "column": 3
            },
            "end": {
              "line": 356,
              "column": 4
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertySignature",
        "signatures": [
          "readonly earlyExit: Effect<void>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Sink/Sink.ts",
            "start": {
              "line": 355,
              "column": 5
            },
            "end": {
              "line": 355,
              "column": 38
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "interface WithEarlyExit<A, E, R> extends Sink<A, E, R> {\n    readonly earlyExit: Effect<void>;\n}"
    ],
    "typeParameters": [
      "A",
      "E",
      "R"
    ],
    "summary": "A sink that can ask its producer callback to stop early.",
    "sections": {
      "Why": "Bounded consumers such as `slice` and `dropAfter` need to end production without encoding\ntermination as a typed failure.",
      "Ownership and lifetime": "`earlyExit` completes the surrounding consumer effect. Further callback deliveries are ignored;\ninterruption and cleanup remain owned by the surrounding producer effect.",
      "Property: earlyExit": "Completes the surrounding early-exit consumer and suppresses later deliveries.",
      "Property: earlyExit: Why": "Normal bounded completion remains distinct from typed producer failure.",
      "Property: earlyExit: Ownership and lifetime": "The surrounding `withEarlyExit` execution owns this Effect; running it aborts its callback fiber."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport type * as Sink from \"@typed/fx/Sink\"\nconst stop = (sink: Sink.Sink.WithEarlyExit<unknown, never, never>) => sink.earlyExit"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Sink/Sink.ts",
        "start": {
          "line": 341,
          "column": 3
        },
        "end": {
          "line": 356,
          "column": 4
        }
      },
      {
        "file": "packages/fx/src/Sink/Sink.ts",
        "start": {
          "line": 355,
          "column": 5
        },
        "end": {
          "line": 355,
          "column": 38
        }
      }
    ],
    "since": "1.0.0",
    "category": "Stopping delivery"
  }
}
