{
  "id": "@typed/fx#Fx.delimit",
  "canonicalId": "@typed/fx/Fx#delimit",
  "symbol": {
    "id": "@typed/fx#Fx.delimit",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Fx.delimit",
    "kind": "constant",
    "signatures": [
      "export declare const delimit: {\n    <B, C>(before: B, after: C): <A, E, R>(fx: Fx<A, E, R>) => Fx<A | B | C, E, R>;\n    <A, E, R, B, C>(fx: Fx<A, E, R>, before: B, after: C): Fx<A | B | C, E, R>;\n};"
    ],
    "summary": "Wraps an Fx with a start and end value.",
    "sections": {
      "Why": "`delimit` composes {@link prepend} and {@link append} for protocols whose\nnormal run must be bracketed by values rather than resource finalizers.",
      "Ownership and lifetime": "`before` is emitted once, followed by every source success or delivered source\nfailure, then `after` once when the source run Effect returns. Interruption or\na defect suppresses `after`; this is Sink sequencing, not `Effect.ensuring`.\nNo resource is acquired and source requirements are kept."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\nimport { Effect } from \"effect\"\n\nconst framed = Fx.delimit(Fx.fromIterable([1, 2]), \"[\", \"]\")\nEffect.runPromise(Fx.collectAll(framed)).then(console.log)\n// [\"[\", 1, 2, \"]\"]"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/continueWith.ts",
      "line": 178
    },
    "since": "1.0.0",
    "category": "Combining sources"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Fx.delimit",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Fx",
    "qualifiedName": "Fx.delimit",
    "declarationKey": "declaration:835d7d9a970a33ea3a2bac68",
    "family": "variable",
    "signatures": [
      "export declare const delimit: {\n    <B, C>(before: B, after: C): <A, E, R>(fx: Fx<A, E, R>) => Fx<A | B | C, E, R>;\n    <A, E, R, B, C>(fx: Fx<A, E, R>, before: B, after: C): Fx<A | B | C, E, R>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/continueWith.ts",
        "start": {
          "line": 178,
          "column": 14
        },
        "end": {
          "line": 186,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/continueWith.ts",
        "start": {
          "line": 179,
          "column": 3
        },
        "end": {
          "line": 179,
          "column": 82
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/continueWith.ts",
        "start": {
          "line": 181,
          "column": 3
        },
        "end": {
          "line": 181,
          "column": 78
        }
      }
    ],
    "aliases": [
      "@typed/fx/Fx#delimit"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Fx",
    "static": false,
    "importedFrom": "declaration:835d7d9a970a33ea3a2bac68"
  },
  "declaration": {
    "declarationKey": "declaration:835d7d9a970a33ea3a2bac68",
    "name": "delimit",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const delimit: {\n    <B, C>(before: B, after: C): <A, E, R>(fx: Fx<A, E, R>) => Fx<A | B | C, E, R>;\n    <A, E, R, B, C>(fx: Fx<A, E, R>, before: B, after: C): Fx<A | B | C, E, R>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/continueWith.ts",
            "start": {
              "line": 178,
              "column": 14
            },
            "end": {
              "line": 186,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "<B, C>(before: B, after: C): <A, E, R>(fx: Fx<A, E, R>) => Fx<A | B | C, E, R>;",
          "<A, E, R, B, C>(fx: Fx<A, E, R>, before: B, after: C): Fx<A | B | C, E, R>;"
        ],
        "typeParameters": [
          "B",
          "C",
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/continueWith.ts",
            "start": {
              "line": 179,
              "column": 3
            },
            "end": {
              "line": 179,
              "column": 82
            }
          },
          {
            "file": "packages/fx/src/Fx/combinators/continueWith.ts",
            "start": {
              "line": 181,
              "column": 3
            },
            "end": {
              "line": 181,
              "column": 78
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const delimit: {\n    <B, C>(before: B, after: C): <A, E, R>(fx: Fx<A, E, R>) => Fx<A | B | C, E, R>;\n    <A, E, R, B, C>(fx: Fx<A, E, R>, before: B, after: C): Fx<A | B | C, E, R>;\n};"
    ],
    "typeParameters": [
      "B",
      "C",
      "A",
      "E",
      "R"
    ],
    "summary": "Wraps an Fx with a start and end value.",
    "sections": {
      "Why": "`delimit` composes {@link prepend} and {@link append} for protocols whose\nnormal run must be bracketed by values rather than resource finalizers.",
      "Ownership and lifetime": "`before` is emitted once, followed by every source success or delivered source\nfailure, then `after` once when the source run Effect returns. Interruption or\na defect suppresses `after`; this is Sink sequencing, not `Effect.ensuring`.\nNo resource is acquired and source requirements are kept."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Fx } from \"@typed/fx\"\nimport { Effect } from \"effect\"\n\nconst framed = Fx.delimit(Fx.fromIterable([1, 2]), \"[\", \"]\")\nEffect.runPromise(Fx.collectAll(framed)).then(console.log)\n// [\"[\", 1, 2, \"]\"]"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/continueWith.ts",
        "start": {
          "line": 178,
          "column": 14
        },
        "end": {
          "line": 186,
          "column": 2
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/continueWith.ts",
        "start": {
          "line": 179,
          "column": 3
        },
        "end": {
          "line": 179,
          "column": 82
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/continueWith.ts",
        "start": {
          "line": 181,
          "column": 3
        },
        "end": {
          "line": 181,
          "column": 78
        }
      }
    ],
    "since": "1.0.0",
    "category": "Combining sources"
  }
}
