alibaba / transmittable-thread-local

📌 a missing Java std lib(simple & 0-dependency) for framework/middleware, provide an enhanced InheritableThreadLocal that transmits values between threads even using thread pooling components.
https://github.com/alibaba/transmittable-thread-local
Apache License 2.0
7.7k stars 1.69k forks source link

`Stream#parallel()#forEach()`或者`List#parallelStream()#forEach()`时,如何使用不丢失`TTL`值 #624

Closed lionbo closed 7 months ago

lionbo commented 7 months ago

在使用map等操作时没问题;但是在使用foreach时,TransmittableThreadLocal就丢失了。

lionbo commented 7 months ago

已经找到相关的issue,关闭