-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
scala-java8-compat/src/main/scala/scala/concurrent/java8/FutureConvertersImpl.scala
Line 35 in 05be2b2
override def thenApply[U](fn: JF[_ >: T, _ <: U]): CompletableFuture[U] = thenApplyAsync(fn) |
After converting a scala future to a java future, the synchronous functions are implemented by calling async ones.
And it's not using the ones that are taking the extra executor parameter. https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html#thenApplyAsync-java.util.function.Function-
In this case, thread local values will be lost including the execution context
payurgin, rdesgroppes and baltiyskiy
Metadata
Metadata
Assignees
Labels
No labels