Return the accumulated context as-is. Use when downstream code needs every named field; prefer select when you can project to a DTO.
Run independent ResultAsync branches concurrently and merge their
named outputs back into context. Upgrades the workflow to async mode.
On multiple failures, the first Err in record-iteration order wins.
StaticcontextStaticemptyStart an empty sync workflow with no fields in context.
StaticfromStaticfromStaticfromStaticfrom
Named-context workflow builder. Each step appends a typed field to the accumulating context object; the workflow tracks sync/async mode so the final output type (RailwayOutput) is correct.
Use
Railwaywhen a service workflow has 4+ named steps, mixed sync and async boundaries, or independent async branches that should run in parallel. For 1–2 step flows, preferflatMap/asyncAfterdirectly.Example