< Back

Wait-MadThread

Sat Jan 18, 2020 9:53 am

NAME Wait-MadThread



SYNOPSIS

Wait for given threads to complete, optionally disposing of them





SYNTAX

Wait-MadThread [[-Thread] <Array>] [-NoDispose] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-Thread <Array>

Array of custom objects containing the PowerShell, Handler and Runspace for each thread to wait for

Required



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-NoDispose [<SwitchParameter>]

Switch - If present, the PowerShell and Runspace objects are not disposed of after completion



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





v 1.0 4/30/18 Tim Curwick Created





RELATED LINKS