Add a new constructor to ThreadLocal<T>:
new ThreadLocal(Factory<T>)
If the factory is specified, then the initialValue method is ignored.
new ThreadLocal(Factory<T>)
If the factory is specified, then the initialValue method is ignored.
- duplicates
-
JDK-8003246 add Supplier to ThreadLocal
-
- Closed
-