MarkusSchaber
Nito.AsyncEx vs DotNext.Threading
We're currently searching for a nice AsyncAutoResetEvent implementation. We found two suitable implementations:
Nito.AsyncEx: https://github.com/StephenCleary/AsyncEx/blob/master/doc/AsyncAutoResetEvent.md
DotNext.Threading: https://dotnet.github.io/dotNext/api/DotNext.Threading.AsyncAutoResetEvent.html
Is there any comparison between those, or between the two libraries in general?
(PS: We do not want to use the Microsoft.VisualStudio.Threading implementation of AsyncAutoResetEvent, as that package pulls in analyzers which just don't apply in our environment, as our project is not a VS extension.)
17 replies
❔ How to convert a hex string to a Span<byte>?
Is there an allocation free method to convert a hex string into the corresponding bytes without allocation? I already have a Span<byte> as the destination, but
Convert.FromHexString(...)
insists on returning a newly allocated byte array. BitConverter
also has no useful methods, it seems.23 replies