Skip to content

Commit 9ca63fc

Browse files
committed
docs: add async method invocation sequence diagram
1 parent 1b17c40 commit 9ca63fc

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Diff for: async-method-invocation/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ Wikipedia says
3636

3737
> In multithreaded computer programming, asynchronous method invocation (AMI), also known as asynchronous method calls or the asynchronous pattern is a design pattern in which the call site is not blocked while waiting for the called code to finish. Instead, the calling thread is notified when the reply arrives. Polling for a reply is an undesired option.
3838
39+
Sequence diagram
40+
41+
![Async Method Invocation sequence diagram](./etc/async-method-invocation-sequence-diagram.png "Async Method Invocation sequence diagram")
42+
3943
## Programmatic Example of Async Method Invocation Pattern in Java
4044

4145
Consider a scenario where multiple tasks need to be executed simultaneously. Using the Async Method Invocation pattern, you can initiate these tasks without waiting for each to complete, thus optimizing resource usage and reducing latency.
Loading

0 commit comments

Comments
 (0)