Utilities
Small, focused helpers shared across the ecosystem.
- Collection — Type-safe collection utilities with powerful query, transform, and pagination primitives.
- TimeSpan — Define, manipulate, and compare durations with a typed, immutable API, integrates easily with time libraries like Luxon and Dayjs.
- FileSize — Define, manipulate, and compare file sizes with a typed API, from bytes to gigabytes, with easy unit conversion.
- Generic Pool — Reuses expensive clients such as FTP and SFTP connections, borrowing and releasing pooled resources with QueuePool or sharing an already exclusive client with NoOpPool.
- Backoff Policies — Predefined retry backoff policies, constant and exponential, with configurable delay and jitter.
- ErrorPolicy Type — Decide which errors are handled by resilience middlewares like retry and fallback, using a predicate function or one or more error classes.
- Invocable — A callable entity, either a plain function or an object exposing an invoke method, so functions and class-based services flow through one shared contract.
- Codec — Encode and decode data with a unified, type-safe interface that includes a built-in Base64 codec and lets you build custom codecs for any protocol.