You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, by using other locking mechanisms such as SemaphoreSlim it is possible to implement rougly equivalent functionality from the locking point of view while keeping things async.
Therefore, the AsyncConverter could maybe provide a way to convert lock(X) (where X must be a object field/property only used for locking) to have X be a SemaphoreSlim(1, 1) instance and replace all usages of the lock(X) {...} with something like this:
You can't do async in a lock
Stop squigglin' me!
The text was updated successfully, but these errors were encountered: