Skip to content

Conversation

@calebkiage
Copy link

When using the defer feature, it's possible to want capturing closures as arguments to the function.

Change the behavior of defer when using multiple calls to chain instead of replacing the closure.

closes #6179

@calebkiage calebkiage force-pushed the u/calebkiage/defer-closures branch from 5eb5a8f to cfb9e1a Compare November 8, 2025 20:47
@calebkiage calebkiage changed the title Allows using capturing closures as arguments to Command::defer feat: allow capturing closures as arguments to Command::defer Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow using capturing closures as arguments to the Command::defer function

1 participant