You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ModuleFast.psm1
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -247,7 +247,9 @@ function Install-ModuleFast {
247
247
#This will output the resulting modules that were installed.
248
248
[Switch]$PassThru,
249
249
#Setting this to "CurrentUser" is the same as specifying the destination as 'Current'. This is a usability convenience.
250
-
[InstallScope]$Scope
250
+
[InstallScope]$Scope,
251
+
#The timeout for HTTP requests. This is set to 30 seconds by default. This is generally sufficient for most requests, but you may need to increase this if you are on a slow connection or are downloading large modules.
252
+
[int]$Timeout=30
251
253
)
252
254
begin {
253
255
trap {$PSCmdlet.ThrowTerminatingError($PSItem)}
@@ -305,14 +307,15 @@ function Install-ModuleFast {
305
307
#We want to maintain a single HttpClient for the life of the module. This isn't as big of a deal as it used to be but
306
308
#it is still a best practice.
307
309
if (-not$SCRIPT:__ModuleFastHttpClient-or$Source-ne$SCRIPT:__ModuleFastHttpClient.BaseAddress) {
0 commit comments