Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
✅ Synchronous wait and swallow exceptions - C#
C
C#
•
2y ago
•
14 replies
santisq
✅ Synchronous wait and swallow exceptions
hey all
, looking for some feedback
, I have something that is working but it doesn
't look very pretty
. was wondering if you could tell me a better way to do it
. essentially
, I need to synchronously wait a task before disposing
, so
:
https://github.com/santisq/PSParallelPipeline/blob/40-have-pstask-return-the-runspace-to-the-runspacepool/src/PSParallelPipeline/Worker.cs#L40-L44
depends on
https://github.com/santisq/PSParallelPipeline/blob/40-have-pstask-return-the-runspace-to-the-runspacepool/src/PSParallelPipeline/RunspacePool.cs#L108-L110
and is used in the
catch
catch
s of the cmdlet processing methods
https://github.com/santisq/PSParallelPipeline/blob/40-have-pstask-return-the-runspace-to-the-runspacepool/src/PSParallelPipeline/Commands/InvokeParallelCommand.cs
.
All feedback is appreciated
.
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
62,270
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Does Polly WaitAndRetryAsync() swallow exceptions during retries?
C
C# / help
2y ago
Exceptions.
C
C# / help
2y ago
✅ Exceptions
C
C# / help
2y ago
Synchronous Chat Program
C
C# / help
3y ago