kuba_z2
❔ Checking if ISymbol was autogenerated
Hello, is there any way to check if
ISymbol
was autogenerated by c# compiler? In this case checking for specialname
attribute should be ok. I want to filter out autogenerated symbols such as methods generated from autoproperties or enums' value__
field.20 replies
✅ ClientWebSocket concurrency question
Hello. Can
ReceiveAsync
and CloseAsync
methods be used concurrently? And also the same for SendAsync
and CloseAsync
(this one sounds a bit funny but it's serious).
The documentation doesn't say anything about concurrency for CloseAsync
.2 replies
❔ ❔ ❔ SemaphoreSlim that can be entered without waiting
Hello, I am trying to find way to easily control how much threads can enter semaphore. I need something like
SemaphoreSlim
but that supports entering without waiting or Releasing with minus values.
For example:
I there any built in object to do it? I really don't want to implement such thing myself.5 replies
Process.EnableRaisingEvents does not work on Windows
I have an app that have 20 workers that are other processes. On production, on ubuntu, when I close the main process with ^C, the workers die as they should, but on Windows, when I kill the process, the workers still exist and use 100% of my i9-12900k (lol), it's because the workers have endless loops and throw exceptions in them when there is no main process. When I close app console window, the main process and workers are not closed and when I kill the main process, I have 100% of cpu usage. Did I miss something?
I use this method to create a worker:
5 replies