You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -421,6 +421,8 @@ Behavioral patterns are concerned with algorithms and the assignment of responsi
421
421
**Applicability:** Use the Callback pattern when
422
422
* When some arbitrary synchronous or asynchronous action must be performed after execution of some defined activity.
423
423
424
+
**Real world examples:**
425
+
*[CyclicBarrier] (http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/CyclicBarrier.html#CyclicBarrier%28int,%20java.lang.Runnable%29) constructor can accept callback that will be triggered every time when barrier is tripped.
0 commit comments