[concurrency-interest] ThreadLocal.getIfPresent()

Peter Levart peter.levart at gmail.com
Thu Jun 7 04:15:45 EDT 2018

On 06/07/18 10:02, Peter Levart wrote:
> But I agree that compute* (or maybe just compute(BinaryOperator)) ....

Well, I meant to say compute(UnaryOperator<T>). That one and the 
following signature would also be useful:

public <P> T compute(P param, BiFunction<? super P, ? super T, ? extends 
T> computeFunction)

  ...which would allow passing parameter(s) to non-capturing lambda(s)...


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20180607/c2b81c58/attachment.html>

More information about the Concurrency-interest mailing list