From 0367fb84e828d7e013d4c23ad993a6f02f30c7be Mon Sep 17 00:00:00 2001 From: sanderstad Date: Wed, 9 Mar 2022 13:30:15 +0100 Subject: [PATCH 1/5] Added threadng --- content/post/multithreading.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 content/post/multithreading.md diff --git a/content/post/multithreading.md b/content/post/multithreading.md new file mode 100644 index 0000000..6ee0633 --- /dev/null +++ b/content/post/multithreading.md @@ -0,0 +1,18 @@ +--- +title: Multithreading +author: Sander Stad +date: '2022-03-09' +categories: + - Example +weight: 170 +--- + + + +## Jobs + + +## Runspaces + + +## Foreach-Object -Parallel \ No newline at end of file From af83bf12edce6ec23a3cb2e912b6f021231f53bd Mon Sep 17 00:00:00 2001 From: sanderstad Date: Wed, 9 Mar 2022 13:31:52 +0100 Subject: [PATCH 2/5] Renamed file --- content/post/{error-actions copy.md => error-handling.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename content/post/{error-actions copy.md => error-handling.md} (100%) diff --git a/content/post/error-actions copy.md b/content/post/error-handling.md similarity index 100% rename from content/post/error-actions copy.md rename to content/post/error-handling.md From 7c995771e56edf582accef9aef110c2e95f4d2c6 Mon Sep 17 00:00:00 2001 From: sanderstad Date: Wed, 9 Mar 2022 13:33:17 +0100 Subject: [PATCH 3/5] Fixed typo --- content/post/error-handling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/post/error-handling.md b/content/post/error-handling.md index 305d74b..0ad1152 100644 --- a/content/post/error-handling.md +++ b/content/post/error-handling.md @@ -84,4 +84,4 @@ Attempted to divide by zero. Finally! ``` -AS you can see the finally is always executed whether or not we have an error. +As you can see the finally is always executed whether or not we have an error. From 0fbe79753f3fcf7e626694f6792ca658257ee5d2 Mon Sep 17 00:00:00 2001 From: sanderstad Date: Wed, 9 Mar 2022 14:26:28 +0100 Subject: [PATCH 4/5] Added sections --- content/post/multithreading.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/post/multithreading.md b/content/post/multithreading.md index 6ee0633..333b110 100644 --- a/content/post/multithreading.md +++ b/content/post/multithreading.md @@ -15,4 +15,5 @@ weight: 170 ## Runspaces -## Foreach-Object -Parallel \ No newline at end of file +## Foreach-Object -Parallel + From 0c9dba12e9e6a62d346cbf8a4fbd2924d1673ff0 Mon Sep 17 00:00:00 2001 From: sanderstad Date: Wed, 9 Mar 2022 14:27:39 +0100 Subject: [PATCH 5/5] fixed example --- content/post/error-handling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/post/error-handling.md b/content/post/error-handling.md index 0ad1152..595bedc 100644 --- a/content/post/error-handling.md +++ b/content/post/error-handling.md @@ -63,7 +63,7 @@ As you can see the specific error is returned instead of the general catch. ```powershell try { # This will generate an error - 1/1 + 1/0 Write-Host "This is executed after the error" } catch [System.DivideByZeroException] { # Catch all errors