Closed jacobslusser closed 5 months ago
It looks ok but I need to test it and check a few things.
LGTM FWIW
Here's a prototype of an async lock type that encapsulates a SemaphoreSlim
:
LGTM! sorry for the delay.
@jacobslusser I hope this delay hasn't discouraged you. Next time I'll try to deal with your PR right away.
@jacobslusser I hope this delay hasn't discouraged you. Next time I'll try to deal with your PR right away.
All good. :smile:
This issue has been fixed in the 2024.0.0 version.
Changes
SocketAbstraction.SendAsync
method for .NET6+ targets.ProtocolVersionExchange.StartAsync
.Session
withSemaphoreSlim
for future async/await work.Notes This PR is mostly about preparation for more async/await work and proving some of the techniques.
I made the
SocketAbstraction
classpartial
so we could put conditional methods in a separateSocketAbstraction.Async.cs
file. Let me know if we like that pattern because I expect a lot more conditional code is coming for other classes.