PowerShell functions and script cmdlets will support the 'Clean' block besides the existing Begin
, Process
, and End
#8090
Labels
Milestone
Begin
, Process
, and End
#8090
Summary of the new document or enhancement
The feature will be checked in to PowerShell 7.3 branch.
clean
block to script block as a peer tobegin
,process
, andend
to allow easy resource cleanup PowerShell/PowerShell#15177Description 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.
The text was updated successfully, but these errors were encountered: