[concurrency-interest] ThreadLocal.getIfPresent()

David Lloyd david.lloyd at redhat.com
Wed Jun 6 12:48:39 EDT 2018


On Wed, Jun 6, 2018 at 10:17 AM, Peter Levart via Concurrency-interest
<concurrency-interest at cs.oswego.edu> wrote:
> Hello,
>
> I thought I'd ask on this list, whether the following new method on
> ThreadLocal class would be useful, desirable or undesirable:

I'd find it useful, but adding it (compatibly) would be very
difficult.  Classes which have overridden get() would have unexpected
behavior, etc.



-- 
- DML


More information about the Concurrency-interest mailing list