{
  "id": "@typed/fx#Versioned.hold",
  "canonicalId": "@typed/fx/Versioned#hold",
  "symbol": {
    "id": "@typed/fx#Versioned.hold",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Versioned.hold",
    "kind": "function",
    "signatures": [
      "export declare function hold<R0, E0, A, E, R, B, E2, R2>(versioned: Versioned<R0, E0, A, E, R, B, E2, R2>): Versioned<R0, E0, A, E, R | Scope.Scope, B, E2, R2>;"
    ],
    "summary": "Holds the latest value of a Versioned stream.",
    "sections": {
      "Why": "Retains the latest pushed value for later subscribers while leaving current-value reads\ndelegated to the original Versioned Effect.",
      "Ownership and lifetime": "The returned Fx requires Scope; its shared upstream subscription and retained buffer are\nfinalized when that Scope closes. Current reads retain input errors and services."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Versioned from \"@typed/fx/Versioned\"\n\nconst program = Effect.scoped(Effect.gen(function* () {\n  const shared = Versioned.hold(Versioned.of({ status: \"ready\" as const }))\n  return yield* shared\n}))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Versioned/Versioned.ts",
      "line": 876
    },
    "since": "1.0.0",
    "category": "Shared observation"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Versioned.hold",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Versioned",
    "qualifiedName": "Versioned.hold",
    "declarationKey": "declaration:a48303ab5f923e8e512a2ab0",
    "family": "function",
    "signatures": [
      "export declare function hold<R0, E0, A, E, R, B, E2, R2>(versioned: Versioned<R0, E0, A, E, R, B, E2, R2>): Versioned<R0, E0, A, E, R | Scope.Scope, B, E2, R2>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Versioned/Versioned.ts",
        "start": {
          "line": 876,
          "column": 1
        },
        "end": {
          "line": 880,
          "column": 2
        }
      }
    ],
    "aliases": [
      "@typed/fx/Versioned#hold"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Versioned",
    "static": false,
    "importedFrom": "declaration:a48303ab5f923e8e512a2ab0"
  },
  "declaration": {
    "declarationKey": "declaration:a48303ab5f923e8e512a2ab0",
    "name": "hold",
    "family": "function",
    "facets": [
      {
        "family": "function",
        "syntaxKind": "FunctionDeclaration",
        "signatures": [
          "export declare function hold<R0, E0, A, E, R, B, E2, R2>(versioned: Versioned<R0, E0, A, E, R, B, E2, R2>): Versioned<R0, E0, A, E, R | Scope.Scope, B, E2, R2>;"
        ],
        "typeParameters": [
          "R0",
          "E0",
          "A",
          "E",
          "R",
          "B",
          "E2",
          "R2"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Versioned/Versioned.ts",
            "start": {
              "line": 876,
              "column": 1
            },
            "end": {
              "line": 880,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare function hold<R0, E0, A, E, R, B, E2, R2>(versioned: Versioned<R0, E0, A, E, R, B, E2, R2>): Versioned<R0, E0, A, E, R | Scope.Scope, B, E2, R2>;"
    ],
    "typeParameters": [
      "R0",
      "E0",
      "A",
      "E",
      "R",
      "B",
      "E2",
      "R2"
    ],
    "summary": "Holds the latest value of a Versioned stream.",
    "sections": {
      "Why": "Retains the latest pushed value for later subscribers while leaving current-value reads\ndelegated to the original Versioned Effect.",
      "Ownership and lifetime": "The returned Fx requires Scope; its shared upstream subscription and retained buffer are\nfinalized when that Scope closes. Current reads retain input errors and services."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { Effect } from \"effect\"\nimport * as Versioned from \"@typed/fx/Versioned\"\n\nconst program = Effect.scoped(Effect.gen(function* () {\n  const shared = Versioned.hold(Versioned.of({ status: \"ready\" as const }))\n  return yield* shared\n}))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Versioned/Versioned.ts",
        "start": {
          "line": 876,
          "column": 1
        },
        "end": {
          "line": 880,
          "column": 2
        }
      }
    ],
    "since": "1.0.0",
    "category": "Shared observation"
  }
}
