diff --git a/README.md b/README.md index 62bc68242..753b500bb 100644 --- a/README.md +++ b/README.md @@ -627,6 +627,8 @@ validation and for building to order ## Async Method Invocation [↑](#list-of-design-patterns) **Intent:** Asynchronous method invocation is pattern where the calling thread is not blocked while waiting results of tasks. The pattern provides parallel processing of multiple independent tasks and retrieving the results via callbacks or waiting until everything is done. +![alt text](https://github.com/iluwatar/java-design-patterns/blob/master/async-method-invocation/etc/async-method-invocation.png "Async Method Invocation") + **Applicability:** Use async method invocation pattern when * You have multiple independent tasks that can run in parallel * You need to improve performance of running a group of sequential tasks diff --git a/async-method-invocation/etc/async-method-invocation.png b/async-method-invocation/etc/async-method-invocation.png new file mode 100644 index 000000000..764895d7a Binary files /dev/null and b/async-method-invocation/etc/async-method-invocation.png differ diff --git a/async-method-invocation/etc/async-method-invocation.ucls b/async-method-invocation/etc/async-method-invocation.ucls new file mode 100644 index 000000000..f2e189eae --- /dev/null +++ b/async-method-invocation/etc/async-method-invocation.ucls @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file