class / @typed/template

SyncRenderQueue

A RenderQueue that executes tasks synchronously and immediately.

Package version
1.0.0-beta.13
Category
Immediate scheduling
Since
1.0.0

Import

import { SyncRenderQueue } from "@typed/template";

Signatures

export declare class SyncRenderQueue extends RenderQueue {
}

Why

Synchronous scheduling is useful for deterministic tests and updates that must complete in the current call stack.

Ownership and lifetime

Tasks run before add returns, so the returned Disposable has no pending browser callback to cancel.

Examples

import { SyncRenderQueue, RenderPriority } from "@typed/template/RenderQueue"

const queue = new SyncRenderQueue()
queue.add("task", () => console.log("Immediate"), () => {}, RenderPriority.Sync)

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source