Skip to content

Commit

Permalink
add executor service param - fixes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
Semernitskaya committed Oct 2, 2023
1 parent 2ace8eb commit 172c563
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions riptide-failsafe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ Http.builder().requestFactory(new HttpComponentsClientHttpRequestFactory())
If no executor is specified, the default executor configured by `Failsafe` is used. See [Failsafe DelegatingScheduler class](https://github.com/failsafe-lib/failsafe/blob/master/core/src/main/java/dev/failsafe/internal/util/DelegatingScheduler.java#L111),
and also [Failsafe documentation](https://failsafe.dev/async-execution/#executorservice-configuration) for more information.

**Beware** when specifying a custom `ExecutorService` - the `ExecutorService` should have a core pool size or parallelism
of at least 2 in order for [timeouts](https://github.com/failsafe-lib/failsafe/blob/master/core/src/main/java/dev/failsafe/Timeout.java) to work.

## Usage

Given the failsafe plugin was configured as shown in the last section: A regular call like the following will now be
Expand Down

0 comments on commit 172c563

Please sign in to comment.