Package-level declarations

Types

Link copied to clipboard

Callback to handle an exception that occurs during an operation (e.g., throwing an exception, logging, mapping the exception to a specific type).

Link copied to clipboard

Predicate to determine if an exception should be considered as a failure. Depending on the mechanism context, this predicate can be used in different ways:

Link copied to clipboard
typealias OnResultPredicate = (result: Any?) -> Boolean

Predicate to determine if a result should be considered as a failure. Depending on the mechanism context, this predicate can be used in different ways:

Link copied to clipboard

Callback to map a result or an exception to a specific type and/or perform additional operations (e.g., logging, throwing an exception).