-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation: is CompileRenderStringAsync thread safe? #313
Comments
Have you found any behavior suggesting its not? Someone recently asked me about thread safety and I posted a retrospective analysis of thread safeness. Not sure which Issue I posted it in. |
No, I was wondering if I could allocate a single |
I believe that should be safe. Will try to add some tests this week to verify. There is already one concurrency test case but its not super robust. |
Pull request #310 makes perfect sense. Such a breaking change might be a pain for current users, but I feel it should be implemented in the official release. |
Running into a similar issue here. Are there any plans to pull in pull request #310 ? |
I ran into some technical problems merging it - I was using GitHub Desktop which has some nasty bugs that I reported and then proceeded to get banned from github.com/Desktop/Desktop for being a pain to them about it being totally broken. Plus, just got back from vacation. Anyway, tl;dr: I will try to get this merged sooner than later. My current client is actually upgrading to ASP.NET Core 3.1 now so there is real economics for me to fix this stuff. |
Fixed by #310 |
More generally, I did not find any information about thread safety. Can I call
CompileRenderStringAsync()
on the same instance from different threads? Is this expected to work?The text was updated successfully, but these errors were encountered: