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

PowerShell functions and script cmdlets will support the 'Clean' block besides the existing Begin, Process, and End #8090

Closed
daxian-dbw opened this issue Sep 15, 2021 · 0 comments · Fixed by #8435
Labels
area-about Area - About_ topics area-core Area - Microsoft.PowerShell.Core module
Milestone

Comments

@daxian-dbw
Copy link
Contributor

daxian-dbw commented Sep 15, 2021

Summary of the new document or enhancement

The feature will be checked in to PowerShell 7.3 branch.

Description of what changed

The new 'clean' block will be supported for PowerShell functions and script cmdlets, to help clean up resources.
For details, please take a look at the RFC listed above.

@daxian-dbw daxian-dbw added the issue-doc-idea Issue - request for new content label Sep 15, 2021
@chasewilson chasewilson added area-about Area - About_ topics area-core Area - Microsoft.PowerShell.Core module hold-for-pr Waiting - for PR merge and removed issue-doc-idea Issue - request for new content labels Sep 15, 2021
@chasewilson chasewilson added this to the Future milestone Sep 15, 2021
@sdwheeler sdwheeler modified the milestones: Future, 7.3.0 Dec 16, 2021
@sdwheeler sdwheeler removed the hold-for-pr Waiting - for PR merge label Dec 16, 2021
sdwheeler added a commit that referenced this issue Dec 17, 2021
* Add experimental feature PSCleanBlock

* fix xref and update release note

* Apply suggestions from code review

Co-authored-by: Dongbo Wang <dongbow@microsoft.com>

Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
@sdwheeler sdwheeler modified the milestones: 7.3, 7.3-p6 Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-about Area - About_ topics area-core Area - Microsoft.PowerShell.Core module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants