{
  "id": "@typed/fx#Fx.runPromiseExit",
  "canonicalId": "@typed/fx/Fx#runPromiseExit",
  "symbol": {
    "id": "@typed/fx#Fx.runPromiseExit",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Fx.runPromiseExit",
    "kind": "constant",
    "signatures": [
      "export declare const runPromiseExit: <A, E>(fx: Fx<A, E>, options?: RunOptions) => Promise<Exit.Exit<void, E>>;"
    ],
    "summary": "Runs an `Fx` stream to completion and returns a Promise of the Exit.",
    "sections": {
      "Why": "Promise-based hosts can inspect success or the complete typed failure `Cause`\nwithout Promise rejection erasing Effect's `Exit` structure.",
      "Ownership and lifetime": "Calling `runPromiseExit` starts the source immediately on Effect's default runtime,\nso all services must already be eliminated. The root fiber owns the source until it\ncompletes; `RunOptions` can supply cancellation. Values are discarded. The Promise\nalways resolves with an `Exit`, including failure and interruption."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Exit } from \"effect\"\nimport { fail, runPromiseExit } from \"@typed/fx/Fx\"\n\nconst outcome = runPromiseExit(fail(\"offline\"))\nconst failed = outcome.then(Exit.isFailure)"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/run/runPromise.ts",
      "line": 38
    },
    "since": "1.0.0",
    "category": "Running effects"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Fx.runPromiseExit",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Fx",
    "qualifiedName": "Fx.runPromiseExit",
    "declarationKey": "declaration:dc1d401929e795ebaf976d38",
    "family": "variable",
    "signatures": [
      "export declare const runPromiseExit: <A, E>(fx: Fx<A, E>, options?: RunOptions) => Promise<Exit.Exit<void, E>>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/run/runPromise.ts",
        "start": {
          "line": 38,
          "column": 14
        },
        "end": {
          "line": 41,
          "column": 76
        }
      }
    ],
    "aliases": [
      "@typed/fx/Fx#runPromiseExit"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Fx",
    "static": false,
    "importedFrom": "declaration:dc1d401929e795ebaf976d38"
  },
  "declaration": {
    "declarationKey": "declaration:dc1d401929e795ebaf976d38",
    "name": "runPromiseExit",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const runPromiseExit: <A, E>(fx: Fx<A, E>, options?: RunOptions) => Promise<Exit.Exit<void, E>>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/run/runPromise.ts",
            "start": {
              "line": 38,
              "column": 14
            },
            "end": {
              "line": 41,
              "column": 76
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const runPromiseExit: <A, E>(fx: Fx<A, E>, options?: RunOptions) => Promise<Exit.Exit<void, E>>;"
    ],
    "typeParameters": [],
    "summary": "Runs an `Fx` stream to completion and returns a Promise of the Exit.",
    "sections": {
      "Why": "Promise-based hosts can inspect success or the complete typed failure `Cause`\nwithout Promise rejection erasing Effect's `Exit` structure.",
      "Ownership and lifetime": "Calling `runPromiseExit` starts the source immediately on Effect's default runtime,\nso all services must already be eliminated. The root fiber owns the source until it\ncompletes; `RunOptions` can supply cancellation. Values are discarded. The Promise\nalways resolves with an `Exit`, including failure and interruption."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Exit } from \"effect\"\nimport { fail, runPromiseExit } from \"@typed/fx/Fx\"\n\nconst outcome = runPromiseExit(fail(\"offline\"))\nconst failed = outcome.then(Exit.isFailure)"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/run/runPromise.ts",
        "start": {
          "line": 38,
          "column": 14
        },
        "end": {
          "line": 41,
          "column": 76
        }
      }
    ],
    "since": "1.0.0",
    "category": "Running effects"
  }
}
