{
  "id": "@typed/template#RenderQueue",
  "canonicalId": "@typed/template#RenderQueue",
  "symbol": {
    "id": "@typed/template#RenderQueue",
    "packageName": "@typed/template",
    "moduleName": ".",
    "exportName": "RenderQueue",
    "kind": "class",
    "signatures": [
      "export declare abstract class RenderQueue implements Disposable {\n    readonly [RenderQueueTypeId]: RenderQueueTypeId;\n    readonly add: (key: unknown, task: () => void, dispose: () => void, priority: number) => Disposable;\n    readonly [Symbol.dispose]: () => void;\n}"
    ],
    "summary": "An abstract base class for managing the execution of rendering tasks.\nIt allows prioritizing updates and scheduling them using different strategies\n(e.g., `requestAnimationFrame`, `requestIdleCallback`, `setTimeout`, or synchronous execution).",
    "sections": {
      "Why": "Fine-grained DOM parts already know what to update; a queue determines when\nthose local mutations run. Keys coalesce superseded work without a virtual\ntree traversal.",
      "Ownership and lifetime": "A queue owns its pending callbacks. Disposing an entry cancels it; disposing\nthe queue cancels the active scheduler and drops all pending buckets. Render\nScopes dispose the callbacks they schedule.",
      "Ordering": "Lower numeric priorities run first. Re-adding the same key and priority\ndisposes and replaces the previous entry.",
      "Property: [[computed:[RenderQueueTypeId]]]": "Nominal evidence that this instance implements Typed's queue contract.",
      "Property: [[computed:[RenderQueueTypeId]]]: Why": "Identifies renderer scheduling without selecting a concrete strategy.",
      "Property: [[computed:[RenderQueueTypeId]]]: Ownership and lifetime": "Immutable metadata owned by the queue.",
      "Property: [[computed:[Symbol.dispose]]]": "Cancels the active scheduler and forgets all queued entries.",
      "Property: [[computed:[Symbol.dispose]]]: Why": "Render Scopes need deterministic scheduler cleanup.",
      "Property: [[computed:[Symbol.dispose]]]: Ownership and lifetime": "Ends this queue's pending-work lifetime; already executed tasks are unaffected.",
      "Property: add": "Adds a task to the render queue.",
      "Property: add: Why": "Keyed replacement coalesces stale local DOM work before it runs.",
      "Property: add: Ownership and lifetime": "The queue owns `task` and `dispose` until execution, replacement, returned\nDisposable cancellation, or queue disposal."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { MixedRenderQueue, RenderPriority } from \"@typed/template/RenderQueue\"\n\nconst queue = new MixedRenderQueue()\n\n// Add a high-priority synchronous task\nqueue.add(\"task1\", () => console.log(\"High priority\"), () => {}, RenderPriority.Sync)\n\n// Add a medium-priority RAF task\nqueue.add(\"task2\", () => console.log(\"Medium priority\"), () => {}, RenderPriority.Raf(5))\n\n// Add a low-priority idle task\nqueue.add(\"task3\", () => console.log(\"Low priority\"), () => {}, RenderPriority.Idle(1))"
      }
    ],
    "relations": [],
    "source": {
      "file": "packages/template/src/RenderQueue.ts",
      "line": 96
    },
    "since": "1.0.0",
    "category": "Scheduled render work"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/template#RenderQueue",
    "packageName": "@typed/template",
    "packageVersion": "1.0.0-beta.13",
    "moduleName": ".",
    "consumerSpecifier": "@typed/template",
    "exportName": "RenderQueue",
    "qualifiedName": "RenderQueue",
    "declarationKey": "declaration:6f488c3cee6c83e41ed91100",
    "family": "class",
    "signatures": [
      "export declare abstract class RenderQueue implements Disposable {\n    readonly [RenderQueueTypeId]: RenderQueueTypeId;\n    readonly add: (key: unknown, task: () => void, dispose: () => void, priority: number) => Disposable;\n    readonly [Symbol.dispose]: () => void;\n}"
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/RenderQueue.ts",
        "start": {
          "line": 96,
          "column": 1
        },
        "end": {
          "line": 216,
          "column": 2
        }
      },
      {
        "file": "packages/template/src/RenderQueue.ts",
        "start": {
          "line": 112,
          "column": 3
        },
        "end": {
          "line": 112,
          "column": 71
        }
      },
      {
        "file": "packages/template/src/RenderQueue.ts",
        "start": {
          "line": 160,
          "column": 3
        },
        "end": {
          "line": 166,
          "column": 5
        }
      },
      {
        "file": "packages/template/src/RenderQueue.ts",
        "start": {
          "line": 136,
          "column": 3
        },
        "end": {
          "line": 146,
          "column": 5
        }
      }
    ],
    "aliases": [
      "@typed/template/RenderQueue#RenderQueue"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:6f488c3cee6c83e41ed91100",
    "name": "RenderQueue",
    "family": "class",
    "facets": [
      {
        "family": "class",
        "syntaxKind": "ClassDeclaration",
        "signatures": [
          "export declare abstract class RenderQueue implements Disposable {\n    readonly [RenderQueueTypeId]: RenderQueueTypeId;\n    readonly add: (key: unknown, task: () => void, dispose: () => void, priority: number) => Disposable;\n    readonly [Symbol.dispose]: () => void;\n}"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/RenderQueue.ts",
            "start": {
              "line": 96,
              "column": 1
            },
            "end": {
              "line": 216,
              "column": 2
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly [RenderQueueTypeId]: RenderQueueTypeId;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/RenderQueue.ts",
            "start": {
              "line": 112,
              "column": 3
            },
            "end": {
              "line": 112,
              "column": 71
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly [Symbol.dispose]: () => void;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/RenderQueue.ts",
            "start": {
              "line": 160,
              "column": 3
            },
            "end": {
              "line": 166,
              "column": 5
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      },
      {
        "family": "property",
        "syntaxKind": "PropertyDeclaration",
        "signatures": [
          "readonly add: (key: unknown, task: () => void, dispose: () => void, priority: number) => Disposable;"
        ],
        "typeParameters": [],
        "sourceSpans": [
          {
            "file": "packages/template/src/RenderQueue.ts",
            "start": {
              "line": 136,
              "column": 3
            },
            "end": {
              "line": 146,
              "column": 5
            }
          }
        ],
        "static": false,
        "readonly": true,
        "optional": false
      }
    ],
    "signatures": [
      "export declare abstract class RenderQueue implements Disposable {\n    readonly [RenderQueueTypeId]: RenderQueueTypeId;\n    readonly add: (key: unknown, task: () => void, dispose: () => void, priority: number) => Disposable;\n    readonly [Symbol.dispose]: () => void;\n}"
    ],
    "typeParameters": [],
    "summary": "An abstract base class for managing the execution of rendering tasks.\nIt allows prioritizing updates and scheduling them using different strategies\n(e.g., `requestAnimationFrame`, `requestIdleCallback`, `setTimeout`, or synchronous execution).",
    "sections": {
      "Why": "Fine-grained DOM parts already know what to update; a queue determines when\nthose local mutations run. Keys coalesce superseded work without a virtual\ntree traversal.",
      "Ownership and lifetime": "A queue owns its pending callbacks. Disposing an entry cancels it; disposing\nthe queue cancels the active scheduler and drops all pending buckets. Render\nScopes dispose the callbacks they schedule.",
      "Ordering": "Lower numeric priorities run first. Re-adding the same key and priority\ndisposes and replaces the previous entry.",
      "Property: [[computed:[RenderQueueTypeId]]]": "Nominal evidence that this instance implements Typed's queue contract.",
      "Property: [[computed:[RenderQueueTypeId]]]: Why": "Identifies renderer scheduling without selecting a concrete strategy.",
      "Property: [[computed:[RenderQueueTypeId]]]: Ownership and lifetime": "Immutable metadata owned by the queue.",
      "Property: [[computed:[Symbol.dispose]]]": "Cancels the active scheduler and forgets all queued entries.",
      "Property: [[computed:[Symbol.dispose]]]: Why": "Render Scopes need deterministic scheduler cleanup.",
      "Property: [[computed:[Symbol.dispose]]]: Ownership and lifetime": "Ends this queue's pending-work lifetime; already executed tasks are unaffected.",
      "Property: add": "Adds a task to the render queue.",
      "Property: add: Why": "Keyed replacement coalesces stale local DOM work before it runs.",
      "Property: add: Ownership and lifetime": "The queue owns `task` and `dispose` until execution, replacement, returned\nDisposable cancellation, or queue disposal."
    },
    "examples": [
      {
        "language": "ts",
        "code": "import { MixedRenderQueue, RenderPriority } from \"@typed/template/RenderQueue\"\n\nconst queue = new MixedRenderQueue()\n\n// Add a high-priority synchronous task\nqueue.add(\"task1\", () => console.log(\"High priority\"), () => {}, RenderPriority.Sync)\n\n// Add a medium-priority RAF task\nqueue.add(\"task2\", () => console.log(\"Medium priority\"), () => {}, RenderPriority.Raf(5))\n\n// Add a low-priority idle task\nqueue.add(\"task3\", () => console.log(\"Low priority\"), () => {}, RenderPriority.Idle(1))"
      }
    ],
    "sourceSpans": [
      {
        "file": "packages/template/src/RenderQueue.ts",
        "start": {
          "line": 96,
          "column": 1
        },
        "end": {
          "line": 216,
          "column": 2
        }
      },
      {
        "file": "packages/template/src/RenderQueue.ts",
        "start": {
          "line": 112,
          "column": 3
        },
        "end": {
          "line": 112,
          "column": 71
        }
      },
      {
        "file": "packages/template/src/RenderQueue.ts",
        "start": {
          "line": 160,
          "column": 3
        },
        "end": {
          "line": 166,
          "column": 5
        }
      },
      {
        "file": "packages/template/src/RenderQueue.ts",
        "start": {
          "line": 136,
          "column": 3
        },
        "end": {
          "line": 146,
          "column": 5
        }
      }
    ],
    "since": "1.0.0",
    "category": "Scheduled render work"
  }
}
