Skip to content

Commit b2e7176

Browse files
Fixed typos and updated PS aliases
1 parent 89db2ca commit b2e7176

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# PSParallel
2+
23
Invoke scriptblocks in parallel runspaces
34

45
## Installation
6+
57
```PowerShell
68
Install-Module PSParallel
79
```
@@ -14,11 +16,12 @@ Install-Module PSParallel
1416
Variables and functions are captured from the parent session.
1517

1618
## Throttling
19+
1720
To control the degree of parallelism, i.e. the number of concurrent runspaces, use the -ThrottleLimit parameter
1821

1922
```PowerShell
2023
# process lots of crash dumps
21-
Get-ChildItem -recurce *.dmp | Invoke-Parallel -ThrottleLimit 64 -ProgressActivity "Processing dumps" {
24+
Get-ChildItem -Recurse *.dmp | Invoke-Parallel -ThrottleLimit 64 -ProgressActivity "Processing dumps" {
2225
[PSCustomObject] @{ Dump=$_; Analysis = cdb.exe -z $_.fullname -c '"!analyze -v;q"'
2326
}
2427
```
@@ -28,8 +31,10 @@ The overhead of spinning up new PowerShell classes is non-zero. Invoke-Parallel
2831
![image](https://github.com/powercode/PSParallel/raw/master/images/Invoke-Parallel.png)
2932

3033
## Contributions
34+
3135
Pull requests and/or suggestions are more than welcome.
3236

33-
### Acknowlegementes
37+
### Acknowledgements
38+
3439
The idea and the basis for the implementation comes from [RamblingCookieMonster](https://github.com/RamblingCookieMonster).
35-
Cudos for that implementation also goes to Boe Prox(@proxb) and Sergei Vorobev(@xvorsx).
40+
Kudos for that implementation also goes to Boe Prox(@proxb) and Sergei Vorobev(@xvorsx).

scripts/Install.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$manPath = Get-ChildItem -recurse $PSScriptRoot/../module -include *.psd1 | select -first 1
1+
$manPath = Get-ChildItem -recurse $PSScriptRoot/../module -include *.psd1 | Select-Object -first 1
22
$man = Test-ModuleManifest $manPath
33

44
$name = $man.Name

scripts/Publish-ToGallery.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$manPath = Get-ChildItem -recurse $PSScriptRoot/../module -include *.psd1 | select -first 1
1+
$manPath = Get-ChildItem -recurse $PSScriptRoot/../module -include *.psd1 | Select-Object -first 1
22
$man = Test-ModuleManifest $manPath
33

44
$name = $man.Name

scripts/dbg.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $philosopherData = @(
3535

3636
$pd = $philosopherData[($_ -1)% $philosopherData.Count]
3737

38-
1..100 | foreach {
38+
1..100 | ForEach-Object {
3939
$op = switch($_ % 8)
4040
{
4141
0 { 'sleeping' }

0 commit comments

Comments
 (0)