Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for finally in PDL #239

Open
vazirim opened this issue Dec 19, 2024 · 0 comments
Open

Support for finally in PDL #239

vazirim opened this issue Dec 19, 2024 · 0 comments
Labels

Comments

@vazirim
Copy link
Member

vazirim commented Dec 19, 2024

Is your feature request related to a problem? Please describe.
When a program fails in the middle, it's useful to be able to take an action in the end no matter how the execution went.

Describe the solution you'd like
A finally feature would execute at the end of a list of blocks, even if a failure occurs in the middle.

Describe alternatives you've considered
N/A

Additional context
This is useful for example to print the token usage in the end.

This issue was proposed by @eloycoto.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant