{
  "id": "@typed/fx#Fx.timeout",
  "canonicalId": "@typed/fx/Fx#timeout",
  "symbol": {
    "id": "@typed/fx#Fx.timeout",
    "packageName": "@typed/fx",
    "moduleName": ".",
    "exportName": "Fx.timeout",
    "kind": "constant",
    "signatures": [
      "export declare const timeout: {\n    (duration: Duration.Input): <A, E, R>(self: Fx<A, E, R>) => Fx<A, E, R | Scope.Scope>;\n    <A, E, R>(self: Fx<A, E, R>, duration: Duration.Input): Fx<A, E, R | Scope.Scope>;\n};"
    ],
    "summary": "Completes the stream if it does not produce a value (or complete) within\n`duration` of the previous event. Matches Effect `Stream.timeout`.\n\nThe timeout is reset after each emission. An infinite duration is a no-op;\na zero duration completes immediately.",
    "sections": {
      "Why": "Silence is meaningful in push systems. This operator turns an idle period\ninto normal completion without inventing an error type.",
      "Ownership and lifetime": "Subscription starts the source and one scoped timer. Each delivered value\nforwards immediately and rearms the timer. If the timer wins, it interrupts\nthe source and the result completes; the interrupt caused by that timeout is\nnot forwarded. Source failure before the deadline propagates. Interruption\nclears both source fiber and timer. Infinite duration returns the source;\nzero duration never starts it."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { timeout } from \"@typed/fx/Fx\"\nimport { periodic } from \"@typed/fx/Fx\"\n\nconst bounded = timeout(periodic(\"1 second\"), \"250 millis\")"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/fx/src/Fx/combinators/timeout.ts",
      "line": 89
    },
    "since": "1.0.0",
    "category": "Time and rate"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/fx#Fx.timeout",
    "packageName": "@typed/fx",
    "packageVersion": "2.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/fx",
    "exportName": "Fx",
    "qualifiedName": "Fx.timeout",
    "declarationKey": "declaration:cbac055c9b03b48a4e6c34e7",
    "family": "variable",
    "signatures": [
      "export declare const timeout: {\n    (duration: Duration.Input): <A, E, R>(self: Fx<A, E, R>) => Fx<A, E, R | Scope.Scope>;\n    <A, E, R>(self: Fx<A, E, R>, duration: Duration.Input): Fx<A, E, R | Scope.Scope>;\n};"
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/timeout.ts",
        "start": {
          "line": 89,
          "column": 14
        },
        "end": {
          "line": 97,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/timeout.ts",
        "start": {
          "line": 90,
          "column": 3
        },
        "end": {
          "line": 90,
          "column": 89
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/timeout.ts",
        "start": {
          "line": 91,
          "column": 3
        },
        "end": {
          "line": 91,
          "column": 85
        }
      }
    ],
    "aliases": [
      "@typed/fx/Fx#timeout"
    ],
    "isAlias": true,
    "parentId": "@typed/fx#Fx",
    "static": false,
    "importedFrom": "declaration:cbac055c9b03b48a4e6c34e7"
  },
  "declaration": {
    "declarationKey": "declaration:cbac055c9b03b48a4e6c34e7",
    "name": "timeout",
    "family": "variable",
    "facets": [
      {
        "family": "variable",
        "syntaxKind": "VariableDeclaration",
        "signatures": [
          "export declare const timeout: {\n    (duration: Duration.Input): <A, E, R>(self: Fx<A, E, R>) => Fx<A, E, R | Scope.Scope>;\n    <A, E, R>(self: Fx<A, E, R>, duration: Duration.Input): Fx<A, E, R | Scope.Scope>;\n};"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/timeout.ts",
            "start": {
              "line": 89,
              "column": 14
            },
            "end": {
              "line": 97,
              "column": 3
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "call-signature",
        "syntaxKind": "CallSignature",
        "signatures": [
          "(duration: Duration.Input): <A, E, R>(self: Fx<A, E, R>) => Fx<A, E, R | Scope.Scope>;",
          "<A, E, R>(self: Fx<A, E, R>, duration: Duration.Input): Fx<A, E, R | Scope.Scope>;"
        ],
        "typeParameters": [
          "A",
          "E",
          "R"
        ],
        "sourceSpans": [
          {
            "file": "packages/fx/src/Fx/combinators/timeout.ts",
            "start": {
              "line": 90,
              "column": 3
            },
            "end": {
              "line": 90,
              "column": 89
            }
          },
          {
            "file": "packages/fx/src/Fx/combinators/timeout.ts",
            "start": {
              "line": 91,
              "column": 3
            },
            "end": {
              "line": 91,
              "column": 85
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export declare const timeout: {\n    (duration: Duration.Input): <A, E, R>(self: Fx<A, E, R>) => Fx<A, E, R | Scope.Scope>;\n    <A, E, R>(self: Fx<A, E, R>, duration: Duration.Input): Fx<A, E, R | Scope.Scope>;\n};"
    ],
    "typeParameters": [
      "A",
      "E",
      "R"
    ],
    "summary": "Completes the stream if it does not produce a value (or complete) within\n`duration` of the previous event. Matches Effect `Stream.timeout`.\n\nThe timeout is reset after each emission. An infinite duration is a no-op;\na zero duration completes immediately.",
    "sections": {
      "Why": "Silence is meaningful in push systems. This operator turns an idle period\ninto normal completion without inventing an error type.",
      "Ownership and lifetime": "Subscription starts the source and one scoped timer. Each delivered value\nforwards immediately and rearms the timer. If the timer wins, it interrupts\nthe source and the result completes; the interrupt caused by that timeout is\nnot forwarded. Source failure before the deadline propagates. Interruption\nclears both source fiber and timer. Infinite duration returns the source;\nzero duration never starts it."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { timeout } from \"@typed/fx/Fx\"\nimport { periodic } from \"@typed/fx/Fx\"\n\nconst bounded = timeout(periodic(\"1 second\"), \"250 millis\")"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/fx/src/Fx/combinators/timeout.ts",
        "start": {
          "line": 89,
          "column": 14
        },
        "end": {
          "line": 97,
          "column": 3
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/timeout.ts",
        "start": {
          "line": 90,
          "column": 3
        },
        "end": {
          "line": 90,
          "column": 89
        }
      },
      {
        "file": "packages/fx/src/Fx/combinators/timeout.ts",
        "start": {
          "line": 91,
          "column": 3
        },
        "end": {
          "line": 91,
          "column": 85
        }
      }
    ],
    "since": "1.0.0",
    "category": "Time and rate"
  }
}
