Support for rewriting SemaphoreSlim? #397
-
I'm attempting to use Coyote to check for bugs in a library of mine, but some of my code is using System.Threading.SemaphoreSlim, which currently isn't supported. Could a rewrite rule be added to directly support code which uses SemaphoreSlim, or is there a detail I've missed? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Thanks for trying out Coyote @camerondm9, and raising this issue! No you are right, if you manually switch to the We basically used to ask developers to manually change the default .NET types to the "concurrency testable" versions provided by Coyote, like this Semaphore one, but a few months ago we introduced rewriting to fully automate this process and make it much more user friendly. So far we have focused on the most common TPL types, but we are happy to add rewriting for I will ping you once I add it to rewriting. Btw, we also welcome (and would love) contributions if tackling this was something that you would be interested to try out! Feel free to let me know in that case. |
Beta Was this translation helpful? Give feedback.
-
Closing as this is duplicate of #368, this is now supported and will be available in the next release. |
Beta Was this translation helpful? Give feedback.
Closing as this is duplicate of #368, this is now supported and will be available in the next release.