import { type ShutdownAwareTransformStreamController } from "https://deno.land/x/shutdown_aware_transform_stream@1.0.0/mod.ts";
Used by a ShutdownAwareTransformer
to interact with its stream.
It behaves in the same way as a normal TransformStream
Controller, except
that it has a signal
property. signal
is an AbortSignal
that triggers
when the underlying stream is aborted.
- https://streams.spec.whatwg.org/#transformer-api
- https://developer.mozilla.org/en-US/docs/Web/API/TransformStreamDefaultController
- This API mirrors the Controller of
WritableStream
, which also exposes asignal
property: https://streams.spec.whatwg.org/#writablestreamdefaultcontroller
Properties
readonly
signal: AbortSignal