{
  "id": "@typed/fx#Fx.runFork",
  "canonicalId": "@typed/fx/Fx#runFork",
  "symbol": {
    "id": "@typed/fx#Fx.runFork",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Fx.runFork",
    "kind": "constant",
    "signatures": [
      "export declare const runFork: <A, E>(fx: Fx<A, E>, options?: RunOptions) => Fiber<void, E>;"
    ],
    "summary": "Runs an `Fx` in a new fiber, using the standard `Effect.runFork`.\nThis is useful for integrating with the top-level Effect runtime.",
    "sections": {
      "Why": "Application and foreign-runtime boundaries sometimes need to start an `Fx` without\nalready being inside an Effect program.",
      "Ownership and lifetime": "`runFork` starts immediately on Effect's default runtime, so it only accepts an `Fx`\nwith no unsupplied services. The returned root fiber owns the subscription and must\nbe interrupted by the caller when the source should stop. Values are discarded;\nfailures appear on the fiber and `RunOptions` controls the runtime launch."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect, Fiber } from \"effect\"\nimport { periodic, runFork } from \"@typed/fx/Fx\"\n\nconst fiber = runFork(periodic(\"1 second\"))\n\n// `runFork` is already a host-runtime boundary. Execute the returned\n// interruption Effect when this host no longer needs the subscription.\nawait Effect.runPromise(Fiber.interrupt(fiber))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/run/fork.ts",
      "line": 89
    },
    "since": "1.0.0",
    "category": "Running effects"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Fx.runFork",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Fx",
    "qualifiedName": "Fx.runFork",
    "declarationKey": "declaration:31a54ed71a5df49108d3f51f",
    "family": "variable",
    "signatures": [
      "export declare const runFork: <A, E>(fx: Fx<A, E>, options?: RunOptions) => Fiber<void, E>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/run/fork.ts",
        "start": {
          "line": 89,
          "column": 14
        },
        "end": {
          "line": 90,
          "column": 36
        }
      }
    ],
    "aliases": [
      "@typed/fx/Fx#runFork"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Fx",
    "static": false,
    "importedFrom": "declaration:31a54ed71a5df49108d3f51f"
  },
  "declaration": {
    "declarationKey": "declaration:31a54ed71a5df49108d3f51f",
    "name": "runFork",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const runFork: <A, E>(fx: Fx<A, E>, options?: RunOptions) => Fiber<void, E>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/run/fork.ts",
            "start": {
              "line": 89,
              "column": 14
            },
            "end": {
              "line": 90,
              "column": 36
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const runFork: <A, E>(fx: Fx<A, E>, options?: RunOptions) => Fiber<void, E>;"
    ],
    "typeParameters": [],
    "summary": "Runs an `Fx` in a new fiber, using the standard `Effect.runFork`.\nThis is useful for integrating with the top-level Effect runtime.",
    "sections": {
      "Why": "Application and foreign-runtime boundaries sometimes need to start an `Fx` without\nalready being inside an Effect program.",
      "Ownership and lifetime": "`runFork` starts immediately on Effect's default runtime, so it only accepts an `Fx`\nwith no unsupplied services. The returned root fiber owns the subscription and must\nbe interrupted by the caller when the source should stop. Values are discarded;\nfailures appear on the fiber and `RunOptions` controls the runtime launch."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect, Fiber } from \"effect\"\nimport { periodic, runFork } from \"@typed/fx/Fx\"\n\nconst fiber = runFork(periodic(\"1 second\"))\n\n// `runFork` is already a host-runtime boundary. Execute the returned\n// interruption Effect when this host no longer needs the subscription.\nawait Effect.runPromise(Fiber.interrupt(fiber))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/run/fork.ts",
        "start": {
          "line": 89,
          "column": 14
        },
        "end": {
          "line": 90,
          "column": 36
        }
      }
    ],
    "since": "1.0.0",
    "category": "Running effects"
  }
}
