Skip to content

Commit

Permalink
fix a few documentation typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladicek committed Nov 27, 2024
1 parent ee81b70 commit 32aaa4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/modules/ROOT/pages/reference/bulkhead.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ For introduction, see xref:howto/bulkhead.adoc[How to Limit Concurrency].

If a guarded method is called by too many callers concurrently, the excess attempts will fail with `BulkheadException`.

If the gaurded method is `@Asynchronous` or `@AsynchronousNonBlocking`, excess attempts are first put into a queue.
If the guarded method is `@Asynchronous` or `@AsynchronousNonBlocking`, excess attempts are first put into a queue.
The queued attempts are executed later.
When the queue becomes full, excess attempts are rejected with `BulkheadException`.

Expand Down
4 changes: 2 additions & 2 deletions doc/modules/ROOT/pages/reference/timeout.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ For introduction, see xref:howto/timeout.adoc[How to Watch for Timeouts].

If a guarded method takes too long, the caller will get a `TimeoutException`.

If the gaurded method is not `@Asynchronous` or `@AsynchronousNonBlocking`, the thread executing the method is interrupted.
If the guarded method is not `@Asynchronous` or `@AsynchronousNonBlocking`, the thread executing the method is interrupted.
Note that interruption requires cooperation from the executing code (for example, it must not swallow `InterruptedException`).
In other words, it is not guaranteed that interrupting the method will actually make it stop.

If the gaurded method is `@Asynchronous` or `@AsynchronousNonBlocking`, timeout is always signalled correctly, but there is no cancellation.
If the guarded method is `@Asynchronous` or `@AsynchronousNonBlocking`, timeout is always signalled correctly, but there is no cancellation.
Even after timeout, the asynchronous action will keep running; its eventual result is just ignored.

[[interactions]]
Expand Down

0 comments on commit 32aaa4a

Please sign in to comment.