electronicarts / ea-async

EA Async implements async-await methods in the JVM.
https://go.ea.com/ea-async
Other
1.38k stars 129 forks source link

is possible to support slf4j mdc #26

Closed the-world-wang closed 6 years ago

the-world-wang commented 6 years ago

2018-08-07 11 31 26 code like this logged during callback ? or some good suggestion?

JoeHegarty commented 6 years ago

I am not really sure what the question is here. What kind of support do you need?

the-world-wang commented 6 years ago

I mean can I get some variable from context(maybe ThreadLocal) in callback?

JoeHegarty commented 6 years ago

ea-async doesn't have any impact on threading, it's just like using .thenRun or .thenAccept etc on the CompletableFuture so the threads will never change unless you explicitly request it. As such this should just work.