import { $logger } from "https://deno.land/x/dxx@rf/src/lib/$shared.ts";
const { TransformWriter } = $logger;
Constructors
new
TransformWriter(fn?: TransformInContextFn<I, O>, options?: TransformWriterOptions<I, O>)Type Parameters
optional
O = IProperties
readonly
_previewers: Writer[]readonly
_transform: TransformInContextFn<I, O> | null | undefinedreadonly
_writers: WriterDetail[]Methods
chain<T>(t: TransformWriter<O, T>)
onIdle()
Returns a promise which is fulfilled when all pending promised writes have settled. This function can assist in imposing a temporal partial ordering between writes with other code (async or sync).
```ts
// ... async or sync writes ...
x.write(...)
await x.write(...)
// ...
await x.onIdle(); // when settled, all enqueued/pending writes have been completed
// ...
```
previewInto(writer: Writer)
Static Methods
TransformWriterTransformFn<sI, _sO>()
_context: unknown | null,
_i: sI,
..._inputs: sI[],