Documentation
¶
Overview ¶
Package ordered runs bounded preparation concurrently and commits in input order.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options[T any] struct { Count int Concurrency int Barrier func(int) bool Prepare func(context.Context, int) (T, error) Commit func(int, T, error) error Dispose func(T) }
Options supplies the isolated preparation and ordered commit operations. Commit receives preparation errors, allowing callers to report and continue.
Click to show internal directories.
Click to hide internal directories.