v0.1.0
First release of flow: interface-driven concurrent pipelines for Go.
You implement the ends — Producer, Processor, Consumer (or pass closures via the *Func adapters) — and Run owns the concurrency, ordering, back-pressure and fail-fast cancellation.
API
RunwithWorkers(n)andOrdered()- Processors:
Map/TryMap,Filter/TryFilter,FlatMap/TryFlatMap, andThento compose - Producers:
Slice,FromSeq - Consumers:
Into,Each
Highlights
- One
Processorcovers map/filter/flatmap viaemit - Global input-order reconstruction across a worker pool (
Ordered()) - Zero dependencies, Go 1.23+
Notes
Pre-1.0: the API may still change before v1.0.0. The project's earlier iterations are preserved under the channel-api (generics channel API) and v1-legacy (pre-generics) tags.