One spawn unit — dial target + Effect ChildProcess command (or a factory that receives the
minted cleartext token for open injection into env/argv). Prefer command for the
factory form.
modelscommand
Source src/internal/launcher.ts:1287 lines
export interface SpawnSpec {
readonly SpawnSpec.node: AnyNodenode: type AnyNode = NodeKey<unknown> & {
readonly url: string | undefined;
readonly path: string | undefined;
readonly kind: ProtocolKind | undefined;
readonly endpoints?: Endpoints;
readonly onConflict?: OnConflict;
readonly [portSym]?: number;
}
A
Tag
erased — its transport endpoints set, plus the primary address
(url and/or Unix path) and
ProtocolKind
kind (the first-declared endpoint, kept for
single-protocol readers), so a tag's distributed set is self-describing about where AND how to
reach each one.
AnyNode;
readonly SpawnSpec.process: ChildProcess.Command | ((token: string) => ChildProcess.Command)process:
| import ChildProcessChildProcess.type Command =
| ChildProcess.StandardCommand
| ChildProcess.PipedCommand
A command that can be built using make, combined using pipeTo, and executed using exec or spawn.
Command
| ((token: stringtoken: string) => import ChildProcessChildProcess.type Command =
| ChildProcess.StandardCommand
| ChildProcess.PipedCommand
A command that can be built using make, combined using pipeTo, and executed using exec or spawn.
Command);
readonly SpawnSpec.ready?: ReadyOptionsready?: ReadyOptions;
}
Referenced by 2 symbols