timonkrebs / MemoizR

Declarative Structured Concurrency for C#
Apache License 2.0
109 stars 3 forks source link

Improve locking with WaitHandle #2

Closed timonkrebs closed 1 year ago

timonkrebs commented 1 year ago

Set should not be locked but still lock other gets. This should be possible to implement with: https://learn.microsoft.com/en-us/dotnet/api/system.threading.waithandle?view=net-7.0 https://stackoverflow.com/questions/10469687/how-to-pause-resume-a-thread