Skip to content

Commit 43f4b02

Browse files
committed
2 parents c3fb70b + ced6fb7 commit 43f4b02

File tree

7 files changed

+369
-197
lines changed

7 files changed

+369
-197
lines changed

scripts/dbg.ps1

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,7 @@ param(
33
[int] $Milliseconds = 500
44
)
55

6-
function new-philosopher {
7-
param($name, [string[]] $treats)
8-
[PSCustomObject] @{
9-
Name = $name
10-
Treats = $treats
11-
}
12-
}
6+
Import-Module PSParallel -RequiredVersion 2.2.1
137

148
function new-philosopher {
159
param($name, [string[]] $treats)
@@ -19,6 +13,7 @@ function new-philosopher {
1913
}
2014
}
2115

16+
2217
$philosopherData = @(
2318
new-philosopher 'Immanuel Kant' 'was a real pissant','who where very rarely stable'
2419
new-philosopher 'Heidegger' 'was a boozy beggar', 'Who could think you under the table'
@@ -34,7 +29,7 @@ $philosopherData = @(
3429
)
3530

3631

37-
1..100 | invoke-parallel -Throttle $ThrottleLimit -ProgressActivity "Parallel Philosofers" {
32+
1..100 | invoke-parallel -Throttle $ThrottleLimit {
3833

3934

4035

0 commit comments

Comments
 (0)