mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-15 00:17:42 +00:00
docs: producer-consumer and promise diagrams
This commit is contained in:
1 parent
261da00a1b
commit
3abaa83710
4 files changed
+8
No files matched your search
@@ -37,6 +37,10 @@ Wikipedia says
|
||||
|
||||
> In computer science, future, promise, delay, and deferred refer to constructs used for synchronizing program execution in some concurrent programming languages. They describe an object that acts as a proxy for a result that is initially unknown, usually because the computation of its value is not yet complete.
|
||||
|
||||
Sequence diagram
|
||||
|
||||

|
||||
|
||||
## Programmatic Example of Promise Pattern in Java
|
||||
|
||||
The Promise design pattern is a software design pattern that's often used in concurrent programming to handle asynchronous operations. It represents a proxy for a value not necessarily known when the promise is created. It allows you to associate handlers with an asynchronous action's eventual success value or failure reason.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 61 KiB |
Reference in new issue
Block a user