Toot

Written by Sebastian Schöner on 2025-01-20 at 12:41

I chose dotnet/C# for a tool I wrote. It's running a bunch of processes and redirects their outputs. However, redirecting the output seems to block: even the async variants (BeginOutputReadLine, or manually reading async from the stream) just move the blocking calls onto a threadpool, meaning that the threadpool is clogging up. You can get fully async reading from pipes on Windows (https://blog.s-schoener.com/2024-06-16-stream-redirection-win32/). Do any of my C# friends know whether that is implemented somewhere in dotnet already?

=> View attached media

=> More informations about this toot | View the thread | More toots from sschoener@mastodon.gamedev.place

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113860730462376664
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
223.192824 milliseconds
Gemini-to-HTML Time
0.575042 milliseconds

This content has been proxied by September (3851b).