— data type of the current chain link
— type of the initial transfer (must be InputTransfer)
Completes the pipeline construction and creates a full-duplex composite transfer.
Mechanics:
Options:
— final transfer type (must be OutputTransfer)
— trigger type (TriggerableInterface | undefined)
— gate type (GateInterface | undefined)
— final output transfer
Optionaloptions: { gate?: TGate; owned?: boolean; triggerable?: TTriggerable }
— completion options (triggerable, gate, owned)
DuplexCompositeTransfer with computed input and output types
Adds an intermediate duplex transfer to the pipeline chain.
Mechanics:
— data type of the next transfer
— duplex transfer to add to the chain
Optionalowned: boolean
— if true, nextTransfer will be destroyed on composite destroy()
A new builder with the updated TNext type
StaticstartStatic method to create a builder with an initial duplex transfer.
— data type of the initial transfer
— type of the initial transfer (must be DuplexTransfer)
— initial duplex transfer
A new DuplexPipelineBuilder instance
Deprecated
Use
CompositeTransferBuilderinstead. Will be removed in the next major release.Builder for constructing full-duplex pipelines (DuplexPipeline).
Purpose: Creates a composite transfer with a duplex interface (DuplexCompositeTransfer), which supports both input (push) and output (pull/subscribe) operations.
Pipeline structure: TStartTransfer [-> DuplexTransfer -> ... ->] -> TFinishTransfer │ │ │ └─ start() └─ to() └─ finish()
Where:
Mechanics:
finish() options:
The owned parameter in to():
Data types:
Use cases:
Example