ConstCombines multiple Results into one. Returns Failure if any Result is Failure, otherwise Success with tuple of values.
Results to combine
Combined Result with tuple of values
Maps over an array of Results, collecting successes or returning first failure.
Array of Results
Result with array of values or first failure
Executes async operations sequentially, stopping on first failure.
Array of async operation functions
Result with array of values or first failure
Executes async operations in parallel, collecting all failures.
Array of async operation functions
Result with array of values or aggregated failure
Retries an operation with exponential backoff.
The operation to retry
Retry options (maxRetries, delay)
Result of the operation after retries
Converts a Result to an optional value.
The Result to convert
The value if Success, null if Failure
Throws if Failure, returns value if Success. Use with caution - prefer explicit error handling.
The Result to unwrap
The success value
Advanced result helpers for common patterns.
These helpers simplify working with Results, especially in command handlers and complex business logic flows.