[concurrency-interest] curious if there is a Local.java in the works for CompletableFutures like scala has
viktor.klang at gmail.com
Mon May 22 15:58:37 EDT 2017
Ah, this question comes up once in a while, the biggest questions in my
1) It's easy to lose context when intermediate libraries/Executors get
involved, how does the developer detect and fix it?
2) It's unclear what fan-in behaviors like zip, merge etc mean in terms of
what the local values should be?
3) It's unclear what fan-out behaviors like split, route, broadcast mean in
terms of what the local values should be?
On Mon, May 22, 2017 at 9:44 PM, Martin Buchholz <martinrb at google.com>
> There's not likely to be any support for local context anywhere in
> java.util.concurrent, but it seems not too hard to roll your own support
> with a custom executor to be used with CompletableFuture that kept track of
> any local context.
> On Fri, May 19, 2017 at 1:16 PM, Pavel Rappo <pavel.rappo at oracle.com>
>> General questions on concurrency in Java should be asked here:
>> > On 18 May 2017, at 21:57, Dean Hiller <dhiller at twitter.com> wrote:
>> > Way more detail here...
>> > http://stackoverflow.com/questions/37933713/does-completable
>> > So I was wondering if this was going to be added at some point to the
>> > as I could not figure out how to set something so it was still
>> available on
>> > the thread at a later time when traversing async thenCompose,
>> > thanks,
>> > Dean
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Concurrency-interest