Add AppendOnlyStreamSource, adjust examples to use it

This commit is contained in:
Vanilagy
2026-04-21 14:58:33 +02:00
parent 2b3e5f45c6
commit 783cfa6fbe
17 changed files with 328 additions and 68 deletions
+2 -2
View File
@@ -580,11 +580,11 @@ export class Output<
}
/** @internal */
_getRootWriter() {
_getRootWriter(isMonotonic: boolean | ((target: Target) => boolean)) {
return this._rootWriterPromise ??= (async () => {
const target = await this._getRootTarget();
const writer = new Writer(target);
const writer = new Writer(target, typeof isMonotonic === 'boolean' ? isMonotonic : isMonotonic(target));
writer.start();
return writer;
})();