Skip to content

Conversation

@hosamaly
Copy link
Contributor

@hosamaly hosamaly commented Dec 10, 2025

A need often arises for a version of ThrowingConsumer and ThrowingFunction that can be used as a Runnable.

This merge request introduces a subclass of Runnable that is a copy of ThrowingConsumer with the necessary adaptations.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Dec 10, 2025
Signed-off-by: Hosam Aly <hosam.aly@exequt.com>
@hosamaly hosamaly force-pushed the add-throwing-runnable branch from 777e5a4 to ceb332c Compare December 10, 2025 17:17
@hosamaly hosamaly changed the title Add ThrowingRunnable alongside ThrowingSupplier et al Add ThrowingRunnable alongside ThrowingConsumer et al Dec 10, 2025
@bclozel
Copy link
Member

bclozel commented Dec 17, 2025

Thanks for the suggestion @hosamaly but we don't have much use for this in the Spring Framework codebase. We'd rather add types and utilities only if they are being used in Framework, because as a new public type, this adds maintenance work to the team for no immediate benefit to the project.

@bclozel bclozel closed this Dec 17, 2025
@bclozel bclozel added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: declined A suggestion or change that we don't feel we should currently apply

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants