{
  "id": "@typed/fx#Fx.fork",
  "canonicalId": "@typed/fx/Fx#fork",
  "symbol": {
    "id": "@typed/fx#Fx.fork",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Fx.fork",
    "kind": "constant",
    "signatures": [
      "export declare const fork: <A, E, R>(fx: Fx<A, E, R>, options?: {\n    readonly startImmediately?: boolean;\n    readonly uninterruptible?: boolean;\n}) => Effect<Fiber<unknown, E>, never, R>;"
    ],
    "summary": "Forks the execution of an `Fx` into a background fiber.\nThe stream will run until it completes or the fiber is interrupted.",
    "sections": {
      "Why": "`fork` keeps background execution inside Effect's supervised fiber tree while\nreturning an explicit handle for coordination.",
      "Ownership and lifetime": "The returned Effect acquires the source services and creates a child attached to\nthe calling fiber's scope. Parent termination interrupts the child. By default the\nchild starts immediately and remains interruptible; `options` can change those two\nEffect fiber policies. Values are discarded and source failure is reported by the\nchild fiber."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect, Fiber } from \"effect\"\nimport { fork, periodic } from \"@typed/fx/Fx\"\n\nconst program = Effect.gen(function* () {\n  const fiber = yield* fork(periodic(\"1 second\"))\n  return yield* Fiber.interrupt(fiber)\n})"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/run/fork.ts",
      "line": 42
    },
    "since": "1.0.0",
    "category": "Running effects"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Fx.fork",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Fx",
    "qualifiedName": "Fx.fork",
    "declarationKey": "declaration:77571ba5ed4ce7f5a854bd0c",
    "family": "variable",
    "signatures": [
      "export declare const fork: <A, E, R>(fx: Fx<A, E, R>, options?: {\n    readonly startImmediately?: boolean;\n    readonly uninterruptible?: boolean;\n}) => Effect<Fiber<unknown, E>, never, R>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/run/fork.ts",
        "start": {
          "line": 42,
          "column": 14
        },
        "end": {
          "line": 52,
          "column": 5
        }
      }
    ],
    "aliases": [
      "@typed/fx/Fx#fork"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Fx",
    "static": false,
    "importedFrom": "declaration:77571ba5ed4ce7f5a854bd0c"
  },
  "declaration": {
    "declarationKey": "declaration:77571ba5ed4ce7f5a854bd0c",
    "name": "fork",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const fork: <A, E, R>(fx: Fx<A, E, R>, options?: {\n    readonly startImmediately?: boolean;\n    readonly uninterruptible?: boolean;\n}) => Effect<Fiber<unknown, E>, never, R>;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/run/fork.ts",
            "start": {
              "line": 42,
              "column": 14
            },
            "end": {
              "line": 52,
              "column": 5
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const fork: <A, E, R>(fx: Fx<A, E, R>, options?: {\n    readonly startImmediately?: boolean;\n    readonly uninterruptible?: boolean;\n}) => Effect<Fiber<unknown, E>, never, R>;"
    ],
    "typeParameters": [],
    "summary": "Forks the execution of an `Fx` into a background fiber.\nThe stream will run until it completes or the fiber is interrupted.",
    "sections": {
      "Why": "`fork` keeps background execution inside Effect's supervised fiber tree while\nreturning an explicit handle for coordination.",
      "Ownership and lifetime": "The returned Effect acquires the source services and creates a child attached to\nthe calling fiber's scope. Parent termination interrupts the child. By default the\nchild starts immediately and remains interruptible; `options` can change those two\nEffect fiber policies. Values are discarded and source failure is reported by the\nchild fiber."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect, Fiber } from \"effect\"\nimport { fork, periodic } from \"@typed/fx/Fx\"\n\nconst program = Effect.gen(function* () {\n  const fiber = yield* fork(periodic(\"1 second\"))\n  return yield* Fiber.interrupt(fiber)\n})"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/run/fork.ts",
        "start": {
          "line": 42,
          "column": 14
        },
        "end": {
          "line": 52,
          "column": 5
        }
      }
    ],
    "since": "1.0.0",
    "category": "Running effects"
  }
}
