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
### [`$using:`](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_language_keywords?view=powershell-7.4) Support
95
95
96
-
Same as `ForEach-Object -Parallel` you can use the `$using:`keyword to pass-in variables to the parallel invocations.
96
+
Same as `ForEach-Object -Parallel` you can use the `$using:`scope modifier to pass-in variables to the parallel invocations.
Copy file name to clipboardExpand all lines: docs/en-US/Invoke-Parallel.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,9 +54,9 @@ $message = 'Hello world from '
54
54
} -Variables @{ message = $message }
55
55
```
56
56
57
-
[`-Variables`](#-variables) specifies a hashtable with key / value pairs of variables to pass-in to the parallel scope. The hashtable keys defines the name for passed-in variables. This parameter is an alternative for the `$using:`keyword.
57
+
[`-Variables`](#-variables) specifies a hashtable with key / value pairs of variables to pass-in to the parallel scope. The hashtable keys defines the name for passed-in variables. This parameter is an alternative for the `$using:`scope modifier.
58
58
59
-
### Example 3: Adding to a single thread safe instance with `$using:`keyword
59
+
### Example 3: Adding to a single thread safe instance with `$using:`scope modifier
@@ -238,7 +238,7 @@ The hashtable keys defines the name for passed-in variables.
238
238
239
239
> [!TIP]
240
240
>
241
-
> This parameter is an alternative for the `$using:` keyword.
241
+
> This parameter is an alternative for the [`$using:` scope modifier](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_scopes?view=powershell-7.4#scope-modifiers).
0 commit comments