mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-20 22:23:52 +00:00
docs: builder, business-delegate, bytecode, caching, callback, chain diagrams
This commit is contained in:
@@ -37,6 +37,11 @@ Wikipedia says
|
||||
|
||||
> In computer programming, a callback, also known as a "call-after" function, is any executable code that is passed as an argument to other code; that other code is expected to call back (execute) the argument at a given time.
|
||||
|
||||
Sequence diagram
|
||||
|
||||

|
||||
|
||||
|
||||
## Programmatic Example of Callback Pattern in Java
|
||||
|
||||
We need to be notified after the executing task has finished. We pass a callback method for the executor and wait for it to call back on us.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
Reference in New Issue
Block a user