Shared StringBuilder for incremental source generator? #74440
-
What is the threading model of incremental source generator? Can I use the same instance of internal |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Everything should be assumed to be free-threaded and concurrent.
No.
Expect that everything is concurrent. Shared state is effectively verboten unless you are very careful to ensure it is absolutely safe. |
Beta Was this translation helpful? Give feedback.
Everything should be assumed to be free-threaded and concurrent.
No.
Expect that everything is concurrent. Shared state is effectively verboten unless you are very careful to ensure it is absolutely safe.