Is it safe to cache StringBuilder with [ThreadStaticAttribute] when asynchronous code used?

前端 未结 0 1544
野性不改
野性不改 2021-02-10 17:22

There is a pattern that allows to cache [StringBuilder] instance per thread, using the [ThreadStaticAttribute]. I wonder if it\'s safe to cache when asynchronous code is used. I

相关标签:
回答
  • 消灭零回复
提交回复
热议问题