Closed Razor0719 closed 2 years ago
Good point!
I'm adding the TransmittableThreadLocal.withInitial()
static method and release a new version these days.
Thanks for your professional suggestion. @Razor0719
@Razor0719 released v2.12.2
https://github.com/alibaba/transmittable-thread-local/releases/tag/v2.12.2
@Razor0719 released
v2.12.2
https://github.com/alibaba/transmittable-thread-local/releases/tag/v2.12.2
thanks a lot!
when I use the TransmittableThreadLocal first, I use it with code below:
and then I use ttl javaangent with the program, and found the value in ttl was never transfer into the sub thread, suddenly, I find the method 'withInitial()' is not override in TransmittableThreadLocal but construct a SuppliedThreadLocal which is extended from ThreadLocal
can TransmittableThreadLocal override this method and then avoid my mistake