{
  "id": "@typed/fx/Fx#failCause",
  "canonicalId": "@typed/fx/Fx#failCause",
  "symbol": {
    "id": "@typed/fx/Fx#failCause",
    "packageName": "@typed/fx",
    "moduleName": "Fx",
    "exportName": "failCause",
    "kind": "constant",
    "signatures": [
      "export declare const failCause: <E>(cause: Cause.Cause<E>) => Fx<never, E, never>;"
    ],
    "summary": "Creates an Fx that immediately terminates with the specified Cause.",
    "sections": {
      "Why": "A complete Effect `Cause` can carry typed failures, defects, and interruption\ninformation across an `Fx` boundary without flattening that structure.",
      "Ownership and lifetime": "Construction is inert. Each run forwards the cause once to `sink.onFailure`, emits\nno values, and acquires no resources."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Cause, Effect } from \"effect\"\nimport { failCause, observe } from \"@typed/fx/Fx\"\n\nconst source = failCause(Cause.fail(\"offline\"))\nconst program = observe(source, () => Effect.void).pipe(\n  Effect.catch((error) => Effect.succeed(error))\n)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/constructors/failCause.ts",
      "line": 35
    },
    "since": "1.0.0",
    "category": "Failure sources"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx/Fx#failCause",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": "Fx",
    "consumerSpecifier": "@typed/fx/Fx",
    "exportName": "failCause",
    "qualifiedName": "failCause",
    "declarationKey": "declaration:3d6401c8b0d1be0f1f3e84a6",
    "family": "variable",
    "signatures": [
      "export declare const failCause: <E>(cause: Cause.Cause<E>) => Fx<never, E, never>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/constructors/failCause.ts",
        "start": {
          "line": 35,
          "column": 14
        },
        "end": {
          "line": 36,
          "column": 71
        }
      }
    ],
    "aliases": [
      "@typed/fx#Fx.failCause"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:3d6401c8b0d1be0f1f3e84a6",
    "name": "failCause",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const failCause: <E>(cause: Cause.Cause<E>) => Fx<never, E, never>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/constructors/failCause.ts",
            "start": {
              "line": 35,
              "column": 14
            },
            "end": {
              "line": 36,
              "column": 71
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const failCause: <E>(cause: Cause.Cause<E>) => Fx<never, E, never>;"
    ],
    "typeParameters": [],
    "summary": "Creates an Fx that immediately terminates with the specified Cause.",
    "sections": {
      "Why": "A complete Effect `Cause` can carry typed failures, defects, and interruption\ninformation across an `Fx` boundary without flattening that structure.",
      "Ownership and lifetime": "Construction is inert. Each run forwards the cause once to `sink.onFailure`, emits\nno values, and acquires no resources."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Cause, Effect } from \"effect\"\nimport { failCause, observe } from \"@typed/fx/Fx\"\n\nconst source = failCause(Cause.fail(\"offline\"))\nconst program = observe(source, () => Effect.void).pipe(\n  Effect.catch((error) => Effect.succeed(error))\n)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/constructors/failCause.ts",
        "start": {
          "line": 35,
          "column": 14
        },
        "end": {
          "line": 36,
          "column": 71
        }
      }
    ],
    "since": "1.0.0",
    "category": "Failure sources"
  }
}
