pipeline
Call Signature
Section titled “Call Signature”pipeline(
s1):Planner
Defined in: packages/engine/src/lib/planner/pipeline.ts:30
Composes stages into a Planner, feeding each stage’s output to the next. The first stage takes PlanningInput, the last produces a PlannerCandidate, and every adjacent pair must agree on the type in between; a mismatch is a compile error at the offending argument.
Every stage receives the same StageContext, and runs wrapped by
its StageContext.instrument: once per request, just before it
runs, under the name given with named or stage-<index>. The
first Err
(a Deferred or an EngineError) stops the pipeline and is returned
unchanged. If the request’s signal aborts while a stage is running, the
next stage does not start and the pipeline returns a CancellationError.
Accepts one to nine stages.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Example
Section titled “Example”const planner = pipeline(selectVessels, arrangeLayout);Call Signature
Section titled “Call Signature”pipeline<
A>(s1,s2):Planner
Defined in: packages/engine/src/lib/planner/pipeline.ts:31
Composes stages into a Planner, feeding each stage’s output to the next. The first stage takes PlanningInput, the last produces a PlannerCandidate, and every adjacent pair must agree on the type in between; a mismatch is a compile error at the offending argument.
Every stage receives the same StageContext, and runs wrapped by
its StageContext.instrument: once per request, just before it
runs, under the name given with named or stage-<index>. The
first Err
(a Deferred or an EngineError) stops the pipeline and is returned
unchanged. If the request’s signal aborts while a stage is running, the
next stage does not start and the pipeline returns a CancellationError.
Accepts one to nine stages.
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”Stage<PlanningInput, A>
Returns
Section titled “Returns”Example
Section titled “Example”const planner = pipeline(selectVessels, arrangeLayout);Call Signature
Section titled “Call Signature”pipeline<
A,B>(s1,s2,s3):Planner
Defined in: packages/engine/src/lib/planner/pipeline.ts:35
Composes stages into a Planner, feeding each stage’s output to the next. The first stage takes PlanningInput, the last produces a PlannerCandidate, and every adjacent pair must agree on the type in between; a mismatch is a compile error at the offending argument.
Every stage receives the same StageContext, and runs wrapped by
its StageContext.instrument: once per request, just before it
runs, under the name given with named or stage-<index>. The
first Err
(a Deferred or an EngineError) stops the pipeline and is returned
unchanged. If the request’s signal aborts while a stage is running, the
next stage does not start and the pipeline returns a CancellationError.
Accepts one to nine stages.
Type Parameters
Section titled “Type Parameters”A
B
Parameters
Section titled “Parameters”Stage<PlanningInput, A>
Stage<A, B>
Returns
Section titled “Returns”Example
Section titled “Example”const planner = pipeline(selectVessels, arrangeLayout);Call Signature
Section titled “Call Signature”pipeline<
A,B,C>(s1,s2,s3,s4):Planner
Defined in: packages/engine/src/lib/planner/pipeline.ts:40
Composes stages into a Planner, feeding each stage’s output to the next. The first stage takes PlanningInput, the last produces a PlannerCandidate, and every adjacent pair must agree on the type in between; a mismatch is a compile error at the offending argument.
Every stage receives the same StageContext, and runs wrapped by
its StageContext.instrument: once per request, just before it
runs, under the name given with named or stage-<index>. The
first Err
(a Deferred or an EngineError) stops the pipeline and is returned
unchanged. If the request’s signal aborts while a stage is running, the
next stage does not start and the pipeline returns a CancellationError.
Accepts one to nine stages.
Type Parameters
Section titled “Type Parameters”A
B
C
Parameters
Section titled “Parameters”Stage<PlanningInput, A>
Stage<A, B>
Stage<B, C>
Returns
Section titled “Returns”Example
Section titled “Example”const planner = pipeline(selectVessels, arrangeLayout);Call Signature
Section titled “Call Signature”pipeline<
A,B,C,D>(s1,s2,s3,s4,s5):Planner
Defined in: packages/engine/src/lib/planner/pipeline.ts:46
Composes stages into a Planner, feeding each stage’s output to the next. The first stage takes PlanningInput, the last produces a PlannerCandidate, and every adjacent pair must agree on the type in between; a mismatch is a compile error at the offending argument.
Every stage receives the same StageContext, and runs wrapped by
its StageContext.instrument: once per request, just before it
runs, under the name given with named or stage-<index>. The
first Err
(a Deferred or an EngineError) stops the pipeline and is returned
unchanged. If the request’s signal aborts while a stage is running, the
next stage does not start and the pipeline returns a CancellationError.
Accepts one to nine stages.
Type Parameters
Section titled “Type Parameters”A
B
C
D
Parameters
Section titled “Parameters”Stage<PlanningInput, A>
Stage<A, B>
Stage<B, C>
Stage<C, D>
Returns
Section titled “Returns”Example
Section titled “Example”const planner = pipeline(selectVessels, arrangeLayout);Call Signature
Section titled “Call Signature”pipeline<
A,B,C,D,E>(s1,s2,s3,s4,s5,s6):Planner
Defined in: packages/engine/src/lib/planner/pipeline.ts:53
Composes stages into a Planner, feeding each stage’s output to the next. The first stage takes PlanningInput, the last produces a PlannerCandidate, and every adjacent pair must agree on the type in between; a mismatch is a compile error at the offending argument.
Every stage receives the same StageContext, and runs wrapped by
its StageContext.instrument: once per request, just before it
runs, under the name given with named or stage-<index>. The
first Err
(a Deferred or an EngineError) stops the pipeline and is returned
unchanged. If the request’s signal aborts while a stage is running, the
next stage does not start and the pipeline returns a CancellationError.
Accepts one to nine stages.
Type Parameters
Section titled “Type Parameters”A
B
C
D
E
Parameters
Section titled “Parameters”Stage<PlanningInput, A>
Stage<A, B>
Stage<B, C>
Stage<C, D>
Stage<D, E>
Returns
Section titled “Returns”Example
Section titled “Example”const planner = pipeline(selectVessels, arrangeLayout);Call Signature
Section titled “Call Signature”pipeline<
A,B,C,D,E,F>(s1,s2,s3,s4,s5,s6,s7):Planner
Defined in: packages/engine/src/lib/planner/pipeline.ts:61
Composes stages into a Planner, feeding each stage’s output to the next. The first stage takes PlanningInput, the last produces a PlannerCandidate, and every adjacent pair must agree on the type in between; a mismatch is a compile error at the offending argument.
Every stage receives the same StageContext, and runs wrapped by
its StageContext.instrument: once per request, just before it
runs, under the name given with named or stage-<index>. The
first Err
(a Deferred or an EngineError) stops the pipeline and is returned
unchanged. If the request’s signal aborts while a stage is running, the
next stage does not start and the pipeline returns a CancellationError.
Accepts one to nine stages.
Type Parameters
Section titled “Type Parameters”A
B
C
D
E
F
Parameters
Section titled “Parameters”Stage<PlanningInput, A>
Stage<A, B>
Stage<B, C>
Stage<C, D>
Stage<D, E>
Stage<E, F>
Returns
Section titled “Returns”Example
Section titled “Example”const planner = pipeline(selectVessels, arrangeLayout);Call Signature
Section titled “Call Signature”pipeline<
A,B,C,D,E,F,G>(s1,s2,s3,s4,s5,s6,s7,s8):Planner
Defined in: packages/engine/src/lib/planner/pipeline.ts:70
Composes stages into a Planner, feeding each stage’s output to the next. The first stage takes PlanningInput, the last produces a PlannerCandidate, and every adjacent pair must agree on the type in between; a mismatch is a compile error at the offending argument.
Every stage receives the same StageContext, and runs wrapped by
its StageContext.instrument: once per request, just before it
runs, under the name given with named or stage-<index>. The
first Err
(a Deferred or an EngineError) stops the pipeline and is returned
unchanged. If the request’s signal aborts while a stage is running, the
next stage does not start and the pipeline returns a CancellationError.
Accepts one to nine stages.
Type Parameters
Section titled “Type Parameters”A
B
C
D
E
F
G
Parameters
Section titled “Parameters”Stage<PlanningInput, A>
Stage<A, B>
Stage<B, C>
Stage<C, D>
Stage<D, E>
Stage<E, F>
Stage<F, G>
Returns
Section titled “Returns”Example
Section titled “Example”const planner = pipeline(selectVessels, arrangeLayout);Call Signature
Section titled “Call Signature”pipeline<
A,B,C,D,E,F,G,H>(s1,s2,s3,s4,s5,s6,s7,s8,s9):Planner
Defined in: packages/engine/src/lib/planner/pipeline.ts:80
Composes stages into a Planner, feeding each stage’s output to the next. The first stage takes PlanningInput, the last produces a PlannerCandidate, and every adjacent pair must agree on the type in between; a mismatch is a compile error at the offending argument.
Every stage receives the same StageContext, and runs wrapped by
its StageContext.instrument: once per request, just before it
runs, under the name given with named or stage-<index>. The
first Err
(a Deferred or an EngineError) stops the pipeline and is returned
unchanged. If the request’s signal aborts while a stage is running, the
next stage does not start and the pipeline returns a CancellationError.
Accepts one to nine stages.
Type Parameters
Section titled “Type Parameters”A
B
C
D
E
F
G
H
Parameters
Section titled “Parameters”Stage<PlanningInput, A>
Stage<A, B>
Stage<B, C>
Stage<C, D>
Stage<D, E>
Stage<E, F>
Stage<F, G>
Stage<G, H>
Returns
Section titled “Returns”Example
Section titled “Example”const planner = pipeline(selectVessels, arrangeLayout);