DefensiveExecution class
Unified defensive execution with circuit breaker Consolidates DefensiveExecution + ObslyCircuitBreaker logic
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fireAndForget(
dynamic operation(), {String? operationName}) → void -
fireAndForgetAsync(
Future< void> operation(), {String? operationName}) → void -
safe<
T> (T operation(), {String? operationName, T? fallback}) → T? -
safeAsync<
T> (Future< T> operation(), {String? operationName, T? fallback}) → Future<T?> -
safeAsyncWithContext<
T> (Future< T> operation(), {required String component, required String operationName, Map<String, dynamic> ? additionalContext, T? fallback}) → Future<T?> - Safe async execution with enhanced error context for debugging
-
safeWithContext<
T> (T operation(), {required String component, required String operationName, Map< String, dynamic> ? additionalContext, T? fallback}) → T? - Safe execution with enhanced error context for debugging