ThrowingConsumerX<T> extension
Extension methods for ThrowingConsumer providing safe execution.
Adds exception handling capabilities to throwing consumers.
- on
Methods
-
callSafely(
T value, {String message()?}) → void -
Available on ThrowingConsumer<
Executes the consumer with exception handling and custom error messaging.T> , provided by the ThrowingConsumerX extension -
callSafelyAsync(
T value, {String message()?}) → Future< void> -
Available on ThrowingConsumer<
Executes the consumer asynchronously with safe exception handling.T> , provided by the ThrowingConsumerX extension