Skip to content

Commit

Permalink
[doc] Spelling corrections in faq.adoc (#3775)
Browse files Browse the repository at this point in the history
Spelling corrections in the **What Is a Good Pattern for Contextual
Logging** section.
  • Loading branch information
akenz1901 committed Apr 11, 2024
1 parent 22ba538 commit 3fdf39f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/asciidoc/faq.adoc
Expand Up @@ -354,7 +354,7 @@ This is one of the most recurring use of `ThreadLocal` in Java, and as a consequ

That might have been a safe assumption to make before Java 8, but with the advent of functional programming elements in the Java language things have changed a bit...

Let's take the example of a API that was imperative and used the template method pattern, then switches to a more functional style.
Let's take the example of an API that was imperative and used the template method pattern, then switched to a more functional style.
With the template method pattern, inheritance was at play. Now in its more functional approach, higher order functions are passed to define the "steps" of the algorithm.
Things are now more declarative than imperative, and that frees the library to make decisions about where each step should run.
For instance, knowing which steps of the underlying algorithm can be parallelized, the library can use an `ExecutorService` to execute some of the steps in parallel.
Expand Down

0 comments on commit 3fdf39f

Please sign in to comment.